:root {
  --bg: #eaf6f8;
  --card: #ffffff;
  --panel: #e0f2f5;
  --ink: #14333a;
  --muted: #5f7a80;
  --green: #00acc1;
  --green-dark: #00838f;
  --cyan-btn: #d8eff4;
  --cyan-btn-hover: #c6e8ef;
  --line: #d5e6e9;
  --panel-line: #cfe3e8;
  --dot: #9ab8bd;
  --error: #b3261e;
  --shadow: 0 1px 2px rgba(20, 51, 58, 0.06), 0 8px 24px rgba(20, 51, 58, 0.06);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Roboto", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
}

.page { max-width: 800px; margin: 0 auto; padding: 56px 20px 32px; }

/* Judul */
.hero { text-align: center; margin-bottom: 28px; }
.hero h1 { display: flex; align-items: center; justify-content: center; gap: 12px; font-size: clamp(1.9rem, 5vw, 2.5rem); margin: 0; letter-spacing: -0.5px; }
.logo-icon { width: 1em; height: 1em; flex: 0 0 auto; color: var(--green); }
.hero p { margin: 8px 0 0; color: var(--muted); font-size: 1.02rem; }

/* Kartu utama */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 28px;
}
.secret-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.secret-head h2 { font-size: 1.02rem; margin: 0; }
.demo-link {
  background: none; border: none; cursor: pointer;
  font-family: var(--font); font-size: 0.92rem; font-weight: 600;
  color: var(--green); padding: 4px 0;
}
.demo-link:hover { color: var(--green-dark); text-decoration: underline; }

/* Input secret */
.secret-input {
  display: flex; align-items: center; gap: 10px;
  margin-top: 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 6px 6px 6px 14px;
  background: #fff;
}
.secret-input:focus-within { border-color: var(--green); outline: 2px solid rgba(0, 172, 193, 0.25); outline-offset: 1px; }
.input-icon { color: var(--muted); display: grid; place-items: center; flex: 0 0 auto; }
.secret-input input {
  flex: 1; min-width: 0;
  border: none; outline: none; background: none;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 1rem; letter-spacing: 0.03em; color: var(--ink);
  text-transform: uppercase; padding: 10px 0;
}
.secret-input input::placeholder { color: #9aa695; text-transform: none; font-family: var(--font); }
.paste-btn {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font); font-size: 0.9rem; font-weight: 600; color: var(--ink);
  background: var(--cyan-btn); border: none; border-radius: 9px;
  padding: 10px 14px; cursor: pointer;
  box-shadow: 0 1px 2px rgba(20, 51, 58, 0.20), 0 2px 6px rgba(20, 51, 58, 0.14);
  transition: box-shadow 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.paste-btn:hover { background: var(--cyan-btn-hover); box-shadow: 0 2px 4px rgba(20, 51, 58, 0.22), 0 6px 14px rgba(20, 51, 58, 0.18); transform: translateY(-1px); }
.paste-btn:active { box-shadow: 0 1px 2px rgba(20, 51, 58, 0.20); transform: translateY(0); }
.paste-btn:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.paste-btn.is-clear { background: #fce8e6; color: #b3261e; }
.paste-btn.is-clear:hover { background: #f9d2cf; }

.privacy-note {
  display: flex; align-items: center; gap: 6px;
  margin: 12px 0 0; font-size: 0.85rem; color: var(--muted);
}
.privacy-note svg { flex: 0 0 auto; }
.privacy-note.warning-note { color: #7a5a00; margin-top: 6px; }

/* Panel OTP */
.otp-panel {
  margin-top: 24px;
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: 16px;
  padding: 22px 22px 18px;
}
.otp-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.otp-label { margin: 0; font-size: 0.78rem; font-weight: 600; letter-spacing: 1.4px; color: var(--muted); }
.otp-status { margin: 0; display: flex; align-items: center; gap: 7px; font-size: 0.88rem; color: var(--muted); }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--dot); flex: 0 0 auto; }
.status-dot.active { background: var(--green); }
.status-dot.error { background: var(--error); }

.otp-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 18px 0 14px; }
.otp-code {
  background: none; border: none; cursor: pointer; padding: 4px 0;
  display: flex; align-items: center; gap: 10px;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 2rem; font-weight: 700; letter-spacing: 0.12em; color: var(--ink);
  min-height: 48px;
}
.otp-code .code-gap { width: 14px; }
.code-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--dot); }
.otp-code.expired { color: var(--error); }

.copy-btn {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font); font-size: 0.9rem; font-weight: 600; color: var(--muted);
  background: #e2ecee; border: none; border-radius: 10px;
  padding: 11px 16px; cursor: pointer;
}
.copy-btn:not(:disabled) { color: #fff; background: var(--green-dark); box-shadow: 0 1px 2px rgba(20, 51, 58, 0.25); }
.copy-btn:not(:disabled):hover { background: #006064; }
.copy-btn:disabled { cursor: not-allowed; }
.copy-btn-light { background: #fff; border: 1px solid var(--line); }
.copy-btn-light:not(:disabled) { border-color: var(--green); }

.otp-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.otp-meta p { margin: 0; font-size: 0.9rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.otp-countdown { color: var(--ink); }
.otp-countdown strong { font-weight: 700; }

.progress { height: 4px; border-radius: 999px; background: var(--panel-line); overflow: hidden; margin-top: 10px; }
.progress span { display: block; height: 100%; width: 100%; background: var(--green); border-radius: inherit; transition: width 0.25s linear; }

.divider { border: none; border-top: 1px solid var(--panel-line); margin: 18px 0; }

.link-label { margin: 0 0 10px; font-size: 0.95rem; font-weight: 600; }
.link-row { display: flex; gap: 10px; }
.link-row input {
  flex: 1; min-width: 0;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.88rem; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 11px 14px; outline: none;
}
.link-row input:focus { border-color: var(--green); }
.link-row input::placeholder { color: #9aa695; font-family: var(--font); }
.link-note { margin: 10px 0 0; font-size: 0.85rem; color: var(--muted); }

/* FAQ accordion */
.faq { margin-top: 36px; }
.faq h2 { text-align: center; font-size: 1.4rem; margin: 0 0 16px; }
.faq-list { display: grid; gap: 12px; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.faq-question { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: none; border: none; cursor: pointer; font-family: var(--font); font-size: 1rem; font-weight: 600; color: var(--ink); text-align: left; padding: 18px 20px; }
.faq-question:hover { background: var(--panel); }
.faq-question:focus-visible { outline: 2px solid var(--green); outline-offset: -2px; }
.faq-chevron { flex: 0 0 auto; color: var(--green-dark); transition: transform 0.35s ease; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.35s ease; }
.faq-item.open .faq-answer { grid-template-rows: 1fr; }
.faq-answer-inner { overflow: hidden; min-height: 0; }
.faq-answer p { margin: 0; padding: 0 20px 18px; color: var(--muted); font-size: 0.95rem; }

/* Footer */
.donate { display: flex; flex-direction: column; align-items: center; gap: .65rem; }
.donate p { margin: 0; color: var(--ink); font-size: .95rem; font-weight: 700; line-height: 1.4; }
.donateLinks { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .55rem; }
.donateButton { display: inline-flex; align-items: center; justify-content: center; gap: .42rem; min-height: 36px; padding: .45rem .78rem; border: 1px solid #b2e3ec; border-radius: 999px; background: #ffffffa8; color: #14333a; font-size: .82rem; font-weight: 700; line-height: 1; text-decoration: none; box-shadow: 0 5px 14px rgba(0, 172, 193, 0.07); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, color .18s ease, background .18s ease; }
.donateButton:hover { transform: translateY(-2px); color: var(--green-dark); background: #ffffff; border-color: #67c8d8; box-shadow: 0 8px 20px rgba(0, 172, 193, 0.13); text-decoration: none; }
.donateButton:active { transform: translateY(0) scale(.97); }
.donateButton:focus-visible { outline: 3px solid #b2e3ec; outline-offset: 3px; }
.donateIcon { width: 17px; height: 17px; flex: 0 0 auto; fill: currentColor; }
footer { position: relative; z-index: 1; width: min(100%, 860px); margin: 22px auto 0; padding: 1rem 1rem 1.4rem; color: var(--muted); font-size: .88rem; }
.footerInner { display: flex; flex-direction: column; align-items: center; gap: 1rem; width: 100%; max-width: 720px; margin: 0 auto; padding-top: 1rem; }
.footerCredit { color: var(--muted); }
footer a { color: var(--green); font-weight: 700; text-decoration: none; }
footer .footerCredit a:hover { text-decoration: underline; }

/* Toast */

.toast {
  position: fixed; left: 50%; bottom: 24px;
  transform: translate(-50%, 80px);
  background: #14333a; color: #fff;
  padding: 12px 20px; border-radius: 999px; box-shadow: var(--shadow);
  opacity: 0; pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
  max-width: calc(100vw - 32px); text-align: center; z-index: 20;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

@media (max-width: 560px) {
  .page { padding-top: 36px; }
  .card { padding: 20px 16px; }
  .otp-panel { padding: 18px 14px 14px; }
  .otp-row { flex-wrap: wrap; }
  .otp-code { font-size: 1.7rem; }
  .link-row { flex-wrap: wrap; }
  .link-row input { flex-basis: 100%; }
}
