/* ==========================================================================
   Link Profile — style.css (general / multi-brand)
   CDN: https://cdn.jajang4u.live/assets/css/style.css

   Tema per brand: override variabel di bawah lewat <style> di HTML brand, mis.
   <style>:root{--accent:#e11d48;--accent-rgb:225,29,72;--grad:linear-gradient(135deg,#e11d48,#f97316)}</style>
   ========================================================================== */

:root {
  --bg: #07060f;
  --bg-2: #120f2a;
  --surface: rgba(255, 255, 255, .06);
  --surface-hover: rgba(255, 255, 255, .11);
  --border: rgba(255, 255, 255, .12);
  --text: #f4f2ff;
  --muted: #a9a4c9;
  --text-soft: #d6d2ee;
  --dialog-bg: #15122e;

  /* Warna brand (override per brand) */
  --accent: #8b5cf6;             /* warna utama */
  --accent-rgb: 139, 92, 246;    /* warna utama dalam RGB, untuk glow */
  --accent-2: #f5c451;           /* warna kedua / highlight */
  --accent-2-rgb: 245, 196, 81;
  --accent-3-rgb: 34, 211, 238;  /* glow sudut bawah */
  --grad: linear-gradient(135deg, #8b5cf6 0%, #6366f1 45%, #22d3ee 100%);
  --grad-2: linear-gradient(135deg, #f5c451 0%, #f59e0b 100%);
  --on-grad: #ffffff;            /* warna teks di tombol utama */
  --on-grad-2: #1a1200;          /* warna teks di tombol kedua */
  --title-grad: linear-gradient(90deg, #fff, #d9ccff 60%, var(--accent-2));
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px -10px rgba(0, 0, 0, .6);
  --maxw: 560px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 500px at 50% -10%, rgba(var(--accent-rgb), .35), transparent 60%),
    radial-gradient(600px 400px at 100% 100%, rgba(var(--accent-3-rgb), .15), transparent 60%),
    radial-gradient(500px 400px at 0% 70%, rgba(var(--accent-2-rgb), .08), transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

/* Bintang dekoratif (murni CSS, tanpa gambar = tanpa request tambahan) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 10% 20%, #fff8, transparent),
    radial-gradient(1px 1px at 30% 80%, #fff6, transparent),
    radial-gradient(1.5px 1.5px at 70% 30%, #fff7, transparent),
    radial-gradient(1px 1px at 85% 65%, #fff5, transparent),
    radial-gradient(1px 1px at 50% 50%, #fff4, transparent),
    radial-gradient(1.5px 1.5px at 20% 60%, #fff5, transparent);
  animation: twinkle 6s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: .5; } to { opacity: 1; } }

a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--accent); color: #fff; padding: 10px 16px;
  border-radius: 10px; text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 16px; }

:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; border-radius: 8px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Layout ---------- */
.wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 20px 16px 40px;
}

/* ---------- Topbar ---------- */
.topbar {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 8px;
}
.icon-btn {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background .2s, transform .2s;
}
.icon-btn:hover { background: var(--surface-hover); transform: translateY(-1px); }
.icon-btn svg { width: 20px; height: 20px; }

/* ---------- Profile ---------- */
.profile { text-align: center; padding: 8px 0 20px; }
.avatar {
  position: relative;
  width: 112px; height: 112px;
  margin: 0 auto 14px;
  border-radius: 50%;
  padding: 3px;
  background: var(--grad);
  box-shadow: 0 0 0 6px rgba(var(--accent-rgb), .15), 0 12px 40px -8px rgba(var(--accent-rgb), .7);
}
.avatar img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-2);
  border: 3px solid var(--bg);
}
.badge-verified {
  position: absolute; right: 2px; bottom: 4px;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #3b82f6;
  border: 3px solid var(--bg);
}
.badge-verified svg { width: 14px; height: 14px; color: #fff; }

.profile h1 {
  margin: 0;
  font-size: clamp(1.5rem, 5vw, 1.9rem);
  font-weight: 800;
  letter-spacing: .02em;
  background: var(--title-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.profile .tagline { margin: 6px 0 0; color: var(--muted); font-size: .95rem; }

.status {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 12px;
  padding: 6px 12px;
  font-size: .8rem; font-weight: 600;
  color: #86efac;
  background: rgba(34, 197, 94, .1);
  border: 1px solid rgba(34, 197, 94, .3);
  border-radius: 999px;
}
.status .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, .7);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* ---------- Links ---------- */
.links { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }

.link-btn {
  position: relative;
  display: flex; align-items: center; gap: 14px;
  min-height: 60px;
  padding: 10px 16px 10px 10px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: .03em;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.link-btn:hover { transform: translateY(-2px); background: var(--surface-hover); border-color: rgba(255, 255, 255, .25); }
.link-btn:active { transform: scale(.98); }

.link-btn .ico {
  flex: 0 0 40px;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .08);
}
.link-btn .ico svg { width: 20px; height: 20px; }
.link-btn .label { flex: 1; text-align: center; padding-right: 40px; }
.link-btn .label small { display: block; font-size: .72rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }

.link-btn.primary { background: var(--grad); color: var(--on-grad); border-color: transparent; }
.link-btn.primary .ico { background: rgba(255, 255, 255, .2); }
.link-btn.primary .label small { color: inherit; opacity: .85; }
.link-btn.secondary { background: var(--grad-2); color: var(--on-grad-2); border-color: transparent; }
.link-btn.secondary .ico { background: rgba(0, 0, 0, .12); }
.link-btn.secondary .label small { color: inherit; opacity: .75; }

/* efek kilau */
.link-btn.primary::after, .link-btn.secondary::after {
  content: "";
  position: absolute; top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent);
  transform: skewX(-20deg);
  animation: shine 3.5s ease-in-out infinite;
}
@keyframes shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }

/* ---------- Banner ---------- */
.banner {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--bg-2);
  aspect-ratio: 2 / 1;
  transition: transform .2s ease;
}
.banner:hover { transform: translateY(-2px); }
.banner img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Content (helpful content) ---------- */
.card {
  margin-top: 28px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.card h2 { margin: 0 0 10px; font-size: 1.15rem; }
.card p { margin: 0 0 12px; color: var(--text-soft); font-size: .95rem; }
.card p:last-child { margin-bottom: 0; }

.info-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
  margin: 14px 0 0; padding: 0; list-style: none;
}
.info-grid li {
  padding: 12px; border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .04); border: 1px solid var(--border);
  font-size: .85rem; color: var(--muted);
}
.info-grid strong { display: block; color: var(--text); font-size: .95rem; }

/* FAQ */
.faq details {
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.faq details:last-child { border-bottom: 0; }
.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  display: flex; justify-content: space-between; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent-2); font-size: 1.2rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 10px 0 0; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 28px;
  text-align: center;
  font-size: .8rem;
  color: var(--muted);
}
.site-footer .age {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 8px;
  padding: 6px 12px;
  border: 1px solid rgba(239, 68, 68, .4);
  background: rgba(239, 68, 68, .08);
  border-radius: 999px;
  color: #fca5a5;
  font-weight: 600;
}
.site-footer p { margin: 4px 0; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ---------- Share dialog ---------- */
.share-dialog {
  width: min(92vw, 440px);
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--dialog-bg);
  color: var(--text);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8);
}
.share-dialog::backdrop { background: rgba(5, 4, 15, .7); backdrop-filter: blur(4px); }
.share-dialog[open] { animation: pop .22s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }

.share-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 16px 8px 20px;
}
.share-head h2 { margin: 0; font-size: 1.05rem; }
.share-body { padding: 8px 20px 20px; }

.share-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
  list-style: none; margin: 0 0 16px; padding: 0;
}
.share-grid a, .share-grid button {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  width: 100%;
  padding: 0; border: 0; background: none;
  color: var(--muted); font: inherit; font-size: .72rem;
  text-decoration: none; cursor: pointer;
}
.share-grid .circle {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  transition: transform .15s, background .15s;
}
.share-grid a:hover .circle, .share-grid button:hover .circle { transform: translateY(-2px); background: rgba(255, 255, 255, .16); }
.share-grid svg { width: 22px; height: 22px; }

.copy-row {
  display: flex; gap: 8px;
  padding: 6px 6px 6px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(0, 0, 0, .25);
}
.copy-row input {
  flex: 1; min-width: 0;
  border: 0; background: none; color: var(--text);
  font: inherit; font-size: .88rem;
}
.copy-row input:focus { outline: none; }
.copy-row button {
  border: 0; border-radius: 10px;
  padding: 8px 14px;
  background: var(--accent); color: #fff;
  font: inherit; font-weight: 600; font-size: .85rem;
  cursor: pointer;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 200;
  transform: translate(-50%, 20px);
  padding: 10px 18px;
  border-radius: 999px;
  background: #fff; color: #111;
  font-size: .9rem; font-weight: 600;
  opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 360px) {
  .share-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .info-grid { grid-template-columns: 1fr; }
}
