:root {
  --bg: #d4d5d6;
  --bg-fallback: #e6e6e6;
  --card: #ffffff;
  --muted: #008f34;
  --text: #1a1a1a;
  --btn: #262626;
  --btn-hover: #404040;
  --success: #2ecc71;
  --danger: #ff5b6e;
  --radius: 16px;
  --shadow: 0 8px 24px rgba(0,0,0,.35);
}

* {
  box-sizing: border-box;
}

a {
  text-decoration: none;
  color: inherit;
}

body {
  margin: 0;
  font-family: system-ui, Arial, sans-serif;
  background: var(--bg, var(--bg-fallback));
  color: #262626; /* <-- Warna default baru, misal abu-abu gelap */
  -webkit-tap-highlight-color: transparent;
}

.page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 20px 16px 40px;
}

.card {
  width: 100%;
  max-width: 480px;
  background: var(--card);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 16px 24px;
}

.profile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 14px;
}
.avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5b8cff, #7ef0d2);
  display: grid;
  place-items: center;
  color: #0b0d19;
  font-weight: 800;
  user-select: none;
}
.name {
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0;
  color: #1a1a1a; /* <-- TAMBAHKAN INI */
}
.bio {
  color: #b700ff; /* <-- UBAH INI (contoh: abu-abu terang) */
  font-size: .9rem;
  margin-top: 2px;
}

/* Carousel */
.carousel {
  position: relative;
  overflow: hidden;
  width: 100%;

  aspect-ratio: 3136 / 1344;
  border-radius: 16px;
  margin-bottom: 16px;

  -webkit-mask-image: -webkit-radial-gradient(white, black);
  mask-image: radial-gradient(white, black);
  
  /* Tambahan biar GPU render-nya lebih stabil di HP */
  transform: translateZ(0);
}
.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  height: 100%; /* Pastikan track ngisi tinggi container */
}

.carousel-track img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
  font-size: 18px;
}
.carousel-btn.prev { left: 8px; }
.carousel-btn.next { right: 8px; }
.carousel-btn:hover { background: rgba(0,0,0,0.7); }

/* Links */
.links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

/* Tombol */
.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--btn);
  color: #ffffff;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, transform .15s ease;
  text-decoration: none;
}
a.btn:link,
a.btn:visited {
  text-decoration: none;
}
.btn:hover,
a.btn:hover {
  background: var(--btn-hover);
}
.btn:active,
a.btn:active {
  transform: scale(0.98);
}
.btn:focus-visible,
a.btn:focus-visible {
  outline: 2px solid #7ef0d2;
  outline-offset: 2px;
}

/* Variasi tombol */
.btn--success {
  background: var(--success);
  color: #0b0d19;
}
.btn--success:hover {
  background: color-mix(in srgb, var(--success) 85%, black);
}
.btn--danger {
  background: var(--danger);
  color: #0b0d19;
}
.btn--danger:hover {
  background: color-mix(in srgb, var(--danger) 85%, black);
}
.btn--outline {
  background: transparent;
  border: 2px solid var(--btn);
  color: var(--btn);
}
.btn--outline:hover {
  background: var(--btn);
  color: var(--text);
}

.btn-row {
  display: flex;
  gap: 12px;
}
.btn-row .btn {
  flex: 1;
  width: auto;
}

/* Highlight teks penting */
.highlight {
  font-weight: 700;
  color: #c90202;
}

/* Sidebar */
.sidebar-toggle {
  position: fixed;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, #4359ff, #5b8cff);
  color: #fff;
  border: none;
  padding: 8px 14px;
  font-size: 18px;
  border-radius: 8px;
  cursor: pointer;
  z-index: 1001;
  box-shadow: var(--shadow);
}
.sidebar-toggle:active {
  transform: scale(0.96);
}
.sidebar {
  position: fixed;
  top: 0;
  width: 240px;
  height: 100%;
  background: var(--card);
  border-right: 1px solid rgba(255,255,255,.06);
  box-shadow: 2px 0 10px rgba(0,0,0,0.4);
  padding-top: 60px;
  transform: translateX(-100%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: 1000;
}
.sidebar.active {
  transform: translateX(0);
  opacity: 1;
}
.sidebar-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: transparent;
  border: none;
  font-size: 26px;
  color: var(--text);
  cursor: pointer;
}
.sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0 16px;
}
/* Menu Item Biasa */
.sidebar ul li {
  margin: 14px 0;
}
.sidebar ul li a {
  color: var(--text);
  text-decoration: none;
  font-size: 1rem;
  padding: 8px 6px;
  display: block;
  border-radius: 6px;
  transition: background .2s ease, padding-left .2s ease;
}

/* Menu Group Collapsible */
.menu-group {
  margin: 14px 0;
}
.sidebar {
  position: fixed;
  top: 0;
  width: 240px;
  height: 100%;                 /* penuh tinggi layar */
  background: var(--card);
  border-right: 1px solid rgba(255,255,255,.06);
  box-shadow: 2px 0 10px rgba(0,0,0,0.4);
  padding-top: 60px;
  transform: translateX(-100%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: 1000;

  /* 👉 Tambahin ini */
  overflow-y: auto;             /* biar scroll ke bawah/atas */
  overflow-x: hidden;           /* cegah geser samping */
}
@media (max-height: 500px) {
  .sidebar {
    height: 100vh;   /* ngikut tinggi layar hp */
  }
}

.menu-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 6px;
  cursor: pointer;
  border-radius: 6px;
  color: var(--text);
  transition: all 0.2s ease;
}

.menu-group-header:hover {
  background: var(--btn-hover);
  padding-left: 10px;
}

.menu-group-header::after {
  content: "▼";
  font-size: 0.8rem;
  transition: transform 0.3s ease;
  margin-left: 8px;
}

.menu-group-header.collapsed::after {
  transform: rotate(-90deg);
}

.menu-group-items {
  padding-left: 10px;
  max-height: 500px;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.menu-group-items.collapsed {
  max-height: 0;
}
.sidebar ul li a:hover {
  background: var(--btn-hover);
  padding-left: 10px;
}
.sidebar ul li a.active {
  background: var(--btn-hover);
  font-weight: 700;
  padding-left: 10px;
  border-left: 3px solid #04214a;
  border-radius: 6px;
}

/* Responsive sidebar toggle */
@media (max-width: 768px) {
  .sidebar-toggle {
    position: absolute;
    top: 10px;
    left: 10px;
    transform: scale(0.95);
  }
  .page {
    padding-top: 50px;
  }
}
@media (min-width: 769px) {
  .sidebar-toggle {
    position: fixed;
    top: 12px;
    left: 12px;
  }
}

/* Logo bawah tengah */
.bottom-logo {
  position: fixed;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
}
.bottom-logo img {
  max-width: 80px;
  height: auto;
}
@media (max-width: 480px) {
  .bottom-logo img {
    max-width: 60px;
  }
}
/* CSS FINAL KHUSUS UNTUK TAMPILAN HP */

.social-links {
  display: flex;
  justify-content: center;
  gap: 8px; /* Jarak antar ikon */
  margin-bottom: 20px; /* Jarak ke tombol di bawah */
}

.social-links a {
  display: inline-block;
  /* Animasi super cepat, pas buat sentuhan jari */
  transition: transform 0.1s ease;
  /* Mencegah highlight biru aneh pas diteken lama di HP */
  -webkit-tap-highlight-color: transparent; 
}

/* EFEK SAAT DITEKAN JARI */
.social-links a:active {
  transform: scale(0.85); /* Ikon mengecil lebih terasa, mantap buat touch */
}

.social-links img {
  width: 32px;
  height: 32px;
  display: block;
}