:root {
  --card-bg: #eaf1f9;
  --ink: #23303d;
  --ink-soft: #6b7885;
  --radius: 16px;
  --btn-radius: 10px;
  --font: "Poppins", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: #1565c0;
  background: linear-gradient(180deg, #0b3d91 0%, #0f52ad 30%, #2a7fd4 70%, #4ea1ea 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

.page {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
}

/* ---------------------------------------------------------- card ---- */
.card {
  width: 100%;
  max-width: 420px;
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 34px 30px 26px;
  box-shadow: 0 18px 45px rgba(4, 26, 60, .28), 0 2px 6px rgba(4, 26, 60, .12);
  animation: rise .5s cubic-bezier(.2, .7, .3, 1) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

.card__head {
  display: flex;
  justify-content: center;
  margin-bottom: 26px;
}

.card__logo {
  width: 100%;
  max-width: 262px;
  height: auto;
  display: block;
}

/* ------------------------------------------------------- divider ---- */
.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  color: var(--ink-soft);
  font-size: 13px;
  letter-spacing: .12em;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #c3ced9;
}

/* --------------------------------------------------------- links ---- */
.links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.link-row {
  position: relative;
  display: flex;
  align-items: stretch;
}

.link-btn {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 12px 46px 12px 18px;
  border-radius: var(--btn-radius);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 15.5px;
  letter-spacing: .01em;
  box-shadow: 0 2px 6px rgba(4, 26, 60, .18);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.link-btn:hover,
.link-btn:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 8px 18px rgba(4, 26, 60, .26);
}

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

.link-btn--yellow { background: linear-gradient(100deg, #f2b705 0%, #dd9a00 100%); }
.link-btn--gold   { background: linear-gradient(100deg, #d3a017 0%, #c28400 100%); }
.link-btn--orange { background: linear-gradient(100deg, #f5811f 0%, #e2570a 100%); }
.link-btn--red    { background: linear-gradient(100deg, #c62828 0%, #9c1414 100%); }

.link-btn__icon {
  display: inline-flex;
  width: 20px;
  height: 20px;
  flex: none;
}

.link-btn__icon svg { width: 100%; height: 100%; }

.link-btn__label { line-height: 1.25; }

/* kebab menu di sisi kanan tombol */
.link-menu {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 42px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, .9);
  border-radius: 0 var(--btn-radius) var(--btn-radius) 0;
  cursor: pointer;
  transition: background .18s ease;
}

.link-menu svg { width: 18px; height: 18px; }
.link-menu:hover { background: rgba(0, 0, 0, .14); }

.link-menu[aria-expanded="true"] { background: rgba(0, 0, 0, .18); }

/* popover salin/bagikan */
.popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  min-width: 190px;
  padding: 6px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(4, 26, 60, .22);
  display: grid;
  gap: 2px;
  animation: pop .14s ease-out both;
}

@keyframes pop {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}

.popover button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  border: 0;
  background: transparent;
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.popover button:hover { background: #eef3f8; }

/* --------------------------------------------------------- footer --- */
.card__foot {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid #c3ced9;
  text-align: center;
  color: var(--ink-soft);
  font-size: 13.5px;
}

/* ---------------------------------------------------------- toast --- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 20px);
  background: rgba(15, 32, 52, .94);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* --------------------------------------------------------- mobile --- */
@media (max-width: 420px) {
  .card { padding: 26px 20px 22px; border-radius: 14px; }
  .link-btn { font-size: 15px; padding-right: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
