:root {
  --copper: #f4f4f5;
  --copper-light: #d4d4d8;
  --steel: #a1a1aa;
  --moss: #d4d4d8;
  --brass: #e4e4e7;
  --ink: #f4f4f5;
  --muted: #a1a1aa;
  --card: rgba(17, 17, 19, 0.97);
  --line: rgba(255, 255, 255, 0.14);
  --radius: 18px;
  --shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.9), 0 8px 22px -12px rgba(0, 0, 0, 0.7);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; background: #09090a; }

body {
  min-height: 100vh;
  min-height: 100dvh;
  font-family: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background-color: #09090a;
  background-image: radial-gradient(ellipse at top, #202023 0%, #101012 42%, #09090a 78%);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: max(24px, env(safe-area-inset-top)) 16px max(32px, env(safe-area-inset-bottom));
  overflow-x: hidden;
}

/* ---------- Panel ---------- */
.card {
  position: relative;
  width: 100%;
  max-width: 560px;
  background: linear-gradient(145deg, rgba(24, 24, 27, 0.98), var(--card) 58%);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 40px 28px 24px;
  animation: rise 0.6s cubic-bezier(.2,.8,.2,1) both;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  border-radius: 24px 24px 0 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.share {
  position: absolute; top: 16px; right: 16px;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line); background: #202023; color: var(--ink);
  display: grid; place-items: center; cursor: pointer;
  transition: transform .2s, box-shadow .2s, color .2s;
}
.share svg { width: 18px; height: 18px; fill: currentColor; }
.share:hover { transform: scale(1.08); color: var(--copper); box-shadow: 0 6px 16px -6px rgba(255,255,255,.2); }
.page-tabs { display: grid; grid-template-columns: 1fr 1fr; margin: 24px 0; border-bottom: 1px solid var(--line); }
.page-tab { min-height: 42px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font: inherit; font-weight: 700; cursor: pointer; }
.page-tab[aria-selected="true"] { border-bottom-color: var(--copper); color: var(--ink); }
.page-tab:focus-visible { outline: 2px solid var(--copper); outline-offset: 2px; }
.tab-panel[hidden] { display: none; }

/* ---------- Profil ---------- */
.profile { text-align: center; }
.eyebrow { margin-bottom: 8px; color: var(--copper); font-size: .74rem; font-weight: 800; }
.avatar-ring {
  width: 160px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  overflow: hidden;
  flex-shrink: 0;
}
.avatar {
  display: block;
  width: 160px;
  height: 160px;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  margin: 0 auto;
  transform: none !important;
  rotate: none !important;
  scale: 1;
}
@keyframes spin { to { transform: rotate(360deg); } }

h1 {
  font-family: "Barlow Condensed", "Barlow", sans-serif; font-weight: 700;
  font-size: 2.1rem; line-height: 1.1; color: var(--ink);
}
.handle {
  display: inline-block; margin-top: 6px; font-weight: 700; font-size: .95rem;
  color: var(--muted); text-decoration: none; transition: color .2s;
}
.handle:hover { color: var(--copper); }
.bio { margin: 12px auto 0; max-width: 34ch; color: var(--muted); font-size: .98rem; line-height: 1.5; }
.music { margin-top: 24px; }
.music-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.music-heading .eyebrow { margin-bottom: 0; }
.music-heading h2 { font-family: "Barlow Condensed", sans-serif; font-size: 1.3rem; }
.spotify-player { width: 100%; height: 152px; overflow: hidden; border-radius: var(--radius); background: #151517; }
.spotify-player iframe { display: block; width: 100%; height: 152px; border: 0; }

/* ---------- Tombol ---------- */
.links { display: grid; gap: 14px; margin-top: 28px; }
.portfolio-section { margin-top: 32px; }
.portfolio-link { margin-top: 0; }
.portfolio-section + #links { margin-top: 40px; }
.social-panel .links { margin-top: 14px; }
.btn {
  --accent: var(--steel);
  position: relative; display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; min-height: 72px;
  background: #151517; border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink); text-decoration: none; font: inherit; text-align: left; cursor: pointer;
  box-shadow: 0 8px 22px -10px rgba(0, 0, 0, 0.9);
  transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s, border-color .2s;
  animation: rise .5s cubic-bezier(.2,.8,.2,1) both; animation-delay: var(--d);
}
.btn:hover, .btn:focus-visible {
  transform: translateY(-3px);
  border-color: var(--copper);
  box-shadow: 0 14px 28px -14px var(--copper);
}
.btn:active { transform: translateY(-1px) scale(.99); }
.btn:focus-visible, .influ-card:focus-visible, .share:focus-visible { outline: 3px solid var(--accent, var(--copper)); outline-offset: 3px; }

.btn-ico {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center; background: var(--accent); color: #111113;
}
.btn-ico svg { width: 24px; height: 24px; fill: currentColor; }
.btn-txt { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.btn-txt strong { font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 1.2rem; }
.btn-txt small { color: var(--muted); font-size: .85rem; margin-top: 2px; }
.btn-go { width: 22px; height: 22px; color: var(--accent); transition: transform .2s; }
.btn-go svg { width: 100%; height: 100%; fill: currentColor; }
.btn:hover .btn-go { transform: translateX(4px); }
.btn-panel-toggle[aria-expanded="true"] .btn-go { transform: rotate(90deg); }
.links.social-expanded > .btn:not(.btn-panel-toggle) { display: none; }

.btn-loja { --accent: var(--copper); }
.btn-whatsapp { --accent: var(--moss); }
.btn-instagram { --accent: var(--steel); }
.btn-instagram .btn-ico { background: var(--accent); }

.btn-destaque {
  background: #f4f4f5;
  border-color: #f4f4f5; color: #111113;
  overflow: hidden;
}
.btn-destaque .btn-ico { background: #27272a; color: #f4f4f5; }
.btn-destaque .btn-txt small { color: #52525b; }
.btn-destaque .btn-go { color: #52525b; }
.btn-destaque::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(0, 0, 0, .08) 50%, transparent 70%);
  transform: translateX(-100%); animation: shine 3.5s ease-in-out infinite 1s;
}
@keyframes shine { 0%, 60% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

.btn-off { cursor: default; opacity: .75; }
.btn-off:hover { transform: none; box-shadow: 0 6px 18px -12px rgba(0, 0, 0, 0.8); border-color: var(--line); }
.badge {
  flex: 0 0 auto; margin-left: auto; white-space: nowrap;
  font-size: .66rem; font-weight: 800; text-transform: uppercase;
  padding: 5px 8px; border-radius: 999px; background: #27272a; color: #e4e4e7;
}

/* ---------- Galeri proyek ---------- */
.builds { margin-top: 36px; }
.section-head { text-align: center; margin-bottom: 16px; }
.section-head h2 { font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 1.45rem; }
.section-head p { color: var(--muted); font-size: .9rem; margin-top: 2px; }
.build-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.build-card {
  min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius);
  background: #151517; animation: rise .5s cubic-bezier(.2,.8,.2,1) both; animation-delay: var(--d, 0ms);
}
.build-image { aspect-ratio: 4 / 3; overflow: hidden; background: #09090a; }
.build-image > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.build-image-empty { width: 100%; height: 100%; display: grid; place-items: center; position: relative; color: var(--card); }
.build-image-empty img { width: 76px; height: 76px; opacity: .92; }
.build-image-empty span { position: absolute; bottom: 12px; color: #e4e4e7; font-size: .8rem; }
.build-copy { padding: 14px 16px 16px; }
.build-status { color: var(--copper); font-size: .75rem; font-weight: 800; }
.build-copy h3 { margin-top: 4px; font-family: "Barlow Condensed", sans-serif; font-size: 1.35rem; line-height: 1.15; }
.build-copy p { margin-top: 6px; color: var(--muted); font-size: .9rem; line-height: 1.45; }
.build-copy .build-motor { color: var(--ink); font-weight: 700; }
.build-empty { display: grid; grid-template-columns: minmax(120px, .8fr) 1fr; }
.build-empty .build-image { aspect-ratio: auto; min-height: 156px; }
.build-empty .build-copy { align-self: center; }

/* ---------- Donasi ---------- */
.donation-panel { margin-top: 28px; }
.donation-socia { max-width: 440px; margin: 0 auto; text-align: center; }
.donation-socia > p { color: var(--muted); font-size: .88rem; line-height: 1.5; }
.sociabuzz-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; margin-top: 20px; padding: 0 22px; border: 1px solid #f4f4f5; border-radius: var(--radius); background: #f4f4f5; color: #111113; font-weight: 800; text-decoration: none; }
.sociabuzz-button:hover, .sociabuzz-button:focus-visible { border-color: #d4d4d8; background: #d4d4d8; }
.sociabuzz-button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.donation-socia .donation-live-note { margin-top: 14px; font-size: .78rem; }

/* ---------- Bagian bawah / notifikasi ---------- */
.foot { margin-top: 32px; text-align: center; font-size: .8rem; color: var(--muted); }

.toast {
  position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom));
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: #f4f4f5; color: #111113; font-weight: 700; font-size: .9rem;
  padding: 10px 18px; border-radius: 999px; transition: .25s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsif ---------- */
@media (min-width: 720px) {
  body { align-items: center; padding: 48px 24px; }
  .card { padding: 48px 44px 28px; }
  .avatar-ring { width: 156px; height: 156px; }
  .build-empty { grid-template-columns: 140px 1fr; }
}
@media (max-width: 360px) {
  .card { padding: 36px 18px 20px; border-radius: 24px; }
  .btn { gap: 10px; padding: 12px; }
  .btn-ico { width: 40px; height: 40px; }
}
@media (max-width: 640px) {
  .build-empty { grid-template-columns: 1fr; }
  .build-empty .build-image { aspect-ratio: 16 / 7; min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (max-width: 480px) {
  .avatar-ring {
    width: 140px;
    height: 140px;
  }

  .avatar {
    width: 140px;
    height: 140px;
    transform: none !important;
    rotate: none !important;
  }
}
