/* Halaman Giveaway — selaras prototipe test-tampilan */

.gw-page {
  max-width: 520px;
  margin: 0 auto;
  padding: 8px 16px 48px;
}

.gw-head { padding: 20px 4px 16px; }
.gw-head h1 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.3px; color: var(--text-primary); }
.gw-head .sub {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}
.gw-head .sub span { display: inline-flex; align-items: center; gap: 6px; }
.gw-head .sub i { color: var(--text-muted); }
.gw-head .sub .ai i { color: var(--accent); }

.gw-section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin: 6px 2px 12px;
}

.gw-grand {
  text-align: center;
  padding: 26px 20px;
  border: 1px solid rgba(233, 30, 140, 0.2);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(233, 30, 140, 0.06), #fff 75%);
  margin-bottom: 12px;
  box-shadow: var(--shadow-card);
}
.gw-grand .gem {
  width: 64px; height: 64px; margin: 0 auto 12px;
  border-radius: var(--radius-md);
  background: rgba(233, 30, 140, 0.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-size: 1.7rem;
}
.gw-grand .pname { font-size: 1.35rem; font-weight: 800; color: var(--text-primary); }
.gw-grand .psub { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }

.gw-prize {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 14px 16px; margin-bottom: 10px;
  box-shadow: 0 1px 3px rgba(20, 22, 29, 0.04);
}
.gw-prize .ic {
  width: 40px; height: 40px; border-radius: var(--radius-md);
  background: var(--bg-input);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); flex-shrink: 0;
}
.gw-prize .name { font-size: 0.92rem; font-weight: 600; flex: 1; }
.gw-prize .who { font-size: 0.8rem; color: var(--text-muted); }

.gw-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px; margin-bottom: 14px;
  box-shadow: var(--shadow-card);
}

.gw-tk-top { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.gw-tk-top .n { font-size: 1.4rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.gw-tk-top .n small { font-size: 0.8rem; font-weight: 500; color: var(--text-secondary); margin-left: 5px; }
.gw-tk-top .of { font-size: 0.78rem; color: var(--text-muted); }

.gw-meter { display: flex; gap: 6px; margin-bottom: 16px; }
.gw-pip { flex: 1; height: 6px; border-radius: var(--radius-full); background: var(--bg-input); }
.gw-pip.on { background: var(--accent); }

.gw-task {
  display: flex; align-items: center; gap: 13px;
  padding: 12px 0; border-top: 1px solid var(--border);
}
.gw-task:first-of-type { border-top: none; }
.gw-task .ic {
  width: 36px; height: 36px; border-radius: var(--radius-md);
  background: var(--bg-input);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 0.85rem; flex-shrink: 0;
}
.gw-task.done .ic { color: var(--success); background: rgba(0, 230, 118, 0.12); }
.gw-task .t { flex: 1; font-size: 0.9rem; font-weight: 600; }
.gw-task .done-tag { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; }
.gw-task.locked { opacity: 0.75; }
.gw-task .hint { font-size: 0.76rem; color: var(--text-muted); font-weight: 500; }

.gw-win {
  display: flex; align-items: center; gap: 13px;
  padding: 11px 0; border-top: 1px solid var(--border); font-size: 0.86rem;
}
.gw-win:first-of-type { border-top: none; }
.gw-win .ava {
  width: 34px; height: 34px; border-radius: var(--radius-md);
  background: var(--bg-input);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem; font-weight: 700; color: var(--text-secondary);
}
.gw-win .pr { margin-left: auto; font-size: 0.8rem; color: var(--text-muted); }

.gw-host {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 16px; margin-bottom: 12px;
  display: flex; gap: 12px; box-shadow: var(--shadow-card);
}
.gw-host .ai-ava {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #9c27b0);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 0.92rem; flex-shrink: 0;
}
.gw-host .h-name { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; font-weight: 700; margin-bottom: 6px; }
.gw-host .h-name .tag {
  font-size: 0.62rem; font-weight: 600; color: var(--text-muted);
  border: 1px solid var(--border); padding: 1px 7px; border-radius: 9999px;
}
.gw-host .h-msg { font-size: 0.86rem; color: var(--text-secondary); line-height: 1.62; }

.gw-ai-line, .gw-dest {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 0.8rem; color: var(--text-secondary);
  padding: 13px 16px; background: var(--bg-secondary);
  border: 1px solid var(--border); border-radius: var(--radius-md); margin-bottom: 14px;
}
.gw-ai-line i, .gw-dest i { color: var(--accent); flex-shrink: 0; }

.gw-dest-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; margin-top: 8px; width: 100%; }
.gw-dest-form .form-group { flex: 1; min-width: 120px; margin: 0; }
.gw-dest-form .form-label { font-size: 0.72rem; }

.gw-howbtn {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  width: 100%; padding: 14px; margin-top: 8px;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-md); color: var(--text-secondary);
  font-family: inherit; font-size: 0.84rem; font-weight: 600; cursor: pointer;
  transition: var(--transition);
}
.gw-howbtn:hover { border-color: var(--accent); color: var(--accent); }
.gw-howbtn i { color: var(--accent); }

.gw-overlay {
  position: fixed; inset: 0; background: rgba(24, 27, 35, 0.45);
  display: none; align-items: center; justify-content: center;
  z-index: 200; padding: 18px;
}
.gw-overlay.show { display: flex; }
.gw-modal {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-xl); width: 100%; max-width: 440px;
  max-height: 86vh; overflow-y: auto; padding: 22px 22px 26px;
  box-shadow: var(--shadow-hover);
}
.gw-m-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 5px; }
.gw-m-head h3 { font-size: 1.12rem; font-weight: 800; }
.gw-m-close {
  background: var(--bg-input); border: none; color: var(--text-secondary);
  width: 32px; height: 32px; border-radius: 50%; cursor: pointer;
}
.gw-m-intro { font-size: 0.88rem; color: var(--text-secondary); margin: 2px 0 16px; }
.gw-sp {
  display: flex; gap: 13px; align-items: flex-start;
  padding: 12px 0; border-top: 1px solid var(--border);
}
.gw-sp:first-of-type { border-top: none; }
.gw-sp .spic {
  width: 34px; height: 34px; border-radius: var(--radius-md);
  background: rgba(233, 30, 140, 0.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); flex-shrink: 0;
}
.gw-sp .spt { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.55; }
.gw-m-trust {
  display: flex; gap: 11px;
  background: rgba(0, 230, 118, 0.08); border: 1px solid rgba(0, 230, 118, 0.25);
  border-radius: var(--radius-md); padding: 13px 15px; margin-top: 18px;
  font-size: 0.82rem; color: var(--text-secondary);
}
.gw-m-trust i { color: #00a152; margin-top: 2px; }
.gw-m-tech { margin-top: 16px; border-top: 1px solid var(--border); padding-top: 6px; }
.gw-m-tech summary {
  list-style: none; cursor: pointer; font-size: 0.82rem;
  color: var(--accent); font-weight: 600; padding: 10px 0;
}
.gw-m-tech summary::-webkit-details-marker { display: none; }
.gw-m-tech .body { font-size: 0.82rem; color: var(--text-muted); line-height: 1.6; }

.gw-empty {
  text-align: center; padding: 48px 20px; color: var(--text-muted);
}
.gw-ref-box {
  font-size: 0.78rem; color: var(--text-secondary);
  background: var(--bg-secondary); border: 1px dashed var(--border);
  border-radius: var(--radius-md); padding: 10px 12px; margin-top: 10px;
  word-break: break-all;
}

.gw-guest-notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  margin-bottom: 16px;
  background: rgba(255, 193, 7, 0.1);
  border: 1px solid rgba(255, 193, 7, 0.35);
  border-radius: var(--radius-md);
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.55;
}
.gw-guest-notice > i {
  color: #c9a000;
  font-size: 1.1rem;
  margin-top: 2px;
  flex-shrink: 0;
}
.gw-guest-notice b { color: var(--text-primary); font-weight: 600; }
.gw-guest-notice .gw-guest-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.gw-join-cta {
  position: relative;
  overflow: hidden;
  margin: 18px 0 14px;
  border: 1px solid rgba(233, 30, 140, 0.14);
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, #f9f3fb 0%, #f6f4fc 42%, #fff 100%);
  box-shadow: var(--shadow-card);
}
.gw-join-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
  background:
    radial-gradient(circle 7px at 11% 22%, rgba(156, 39, 176, 0.14) 99%, transparent),
    radial-gradient(circle 5px at 24% 78%, rgba(233, 30, 140, 0.1) 99%, transparent),
    radial-gradient(circle 6px at 78% 16%, rgba(156, 39, 176, 0.12) 99%, transparent),
    radial-gradient(circle 4px at 92% 62%, rgba(233, 30, 140, 0.1) 99%, transparent),
    radial-gradient(circle 5px at 62% 88%, rgba(156, 39, 176, 0.08) 99%, transparent),
    linear-gradient(45deg, transparent 48%, rgba(156, 39, 176, 0.06) 49%, rgba(156, 39, 176, 0.06) 51%, transparent 52%) 18% 35% / 18px 18px no-repeat,
    linear-gradient(-45deg, transparent 48%, rgba(233, 30, 140, 0.05) 49%, rgba(233, 30, 140, 0.05) 51%, transparent 52%) 84% 28% / 14px 14px no-repeat,
    linear-gradient(0deg, transparent 48%, rgba(156, 39, 176, 0.05) 49%, rgba(156, 39, 176, 0.05) 51%, transparent 52%) 72% 72% / 12px 12px no-repeat;
}
.gw-join-body {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 30px 22px 26px;
}
.gw-join-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--accent-light), var(--accent));
  color: #fff;
  border-radius: 50%;
  font-size: 1.35rem;
  box-shadow: 0 6px 18px var(--accent-glow-sm);
}
.gw-join-cta h2 {
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: -0.2px;
  margin: 0 0 12px;
  color: var(--text-primary);
}
.gw-join-desc {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 360px;
  margin: 0 auto 20px;
}
.gw-join-desc strong {
  color: var(--text-primary);
  font-weight: 700;
}
.gw-join-form {
  max-width: 100%;
  margin: 0;
}
.gw-join-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 20px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 16px var(--accent-glow-sm);
}
.gw-join-btn i {
  font-size: 0.9rem;
}
.gw-join-note {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin: 14px 0 0;
  letter-spacing: 0.01em;
}
