:root {
  --bg-main: #f5f7fb;
  --card-bg: #ffffff;
  --box-bg: #f8fafc;
  --border-color: #e2e8f0;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --primary-blue: #0ea5e9;
  --primary-blue-hover: #0284c7;
  --badge-blue-bg: #e0f2fe;
  --badge-blue-text: #0284c7;
  --badge-green-bg: #dcfce7;
  --badge-green-text: #16a34a;
  --badge-purple-bg: #f3e8ff;
  --badge-purple-text: #9333ea;
  --btn-social-bg: #f1f5f9;
  --overlay-bg: rgba(15, 23, 42, 0.45);
  --sheet-bg: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  --profile-card-overlay: rgba(255, 255, 255, 0.88);
}

body.dark-mode {
  --bg-main: #0b0f17;
  --card-bg: #111827;
  --box-bg: #1f2937;
  --border-color: #374151;
  --text-dark: #f9fafb;
  --text-muted: #9ca3af;
  --badge-blue-bg: rgba(14, 165, 233, 0.2);
  --badge-green-bg: rgba(34, 197, 94, 0.2);
  --badge-purple-bg: rgba(168, 85, 247, 0.2);
  --btn-social-bg: #1f2937;
  --overlay-bg: rgba(0, 0, 0, 0.75);
  --sheet-bg: linear-gradient(180deg, #111827 0%, #0b0f17 100%);
  --profile-card-overlay: rgba(17, 24, 39, 0.88);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

body {
  background-color: var(--bg-main);
  color: var(--text-dark);
  display: flex;
  justify-content: center;
  padding: 16px;
  min-height: 100vh;
}

.wrapper {
  width: 100%;
  max-width: 800px;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--card-bg);
  padding: 14px 20px;
  border-radius: 14px;
  border: 1px solid var(--border-color);
  margin-bottom: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  user-select: none;
}

.brand-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.brand-avatar:hover {
  transform: scale(1.08);
  box-shadow: 0 0 10px rgba(14, 165, 233, 0.4);
}

.brand-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-dark);
}

.brand-title span {
  color: var(--primary-blue);
}

.theme-btn {
  background: var(--box-bg);
  border: 1px solid var(--border-color);
  color: var(--text-dark);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.hero-banner {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 9;
  min-height: 130px;
  max-height: 170px;
  background-image: url('https://a.top4top.io/p_39202hqlv1.jpg');
  background-size: cover;
  background-position: center;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(2px);
}

body.dark-mode .hero-overlay {
  background: rgba(17, 24, 39, 0.82);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 12px 16px;
}

.hero-banner h1 {
  font-size: 1.35rem;
  color: var(--primary-blue);
  margin: 6px 0 3px 0;
  font-weight: 800;
  line-height: 1.2;
}

.subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.68rem;
  font-weight: 700;
}

.badge-pill.blue { background-color: var(--badge-blue-bg); color: var(--badge-blue-text); }
.badge-pill.green { background-color: var(--badge-green-bg); color: var(--badge-green-text); }

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 12px 8px;
  border-radius: 12px;
  text-align: center;
}

.stat-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 6px;
}

.stat-badge.blue { background: var(--badge-blue-bg); color: var(--badge-blue-text); }
.stat-badge.green { background: var(--badge-green-bg); color: var(--badge-green-text); }
.stat-badge.purple { background: var(--badge-purple-bg); color: var(--badge-purple-text); }

.stat-value {
  font-weight: 700;
  font-size: 0.85rem;
  white-space: nowrap;
}

.content-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
}

.card-title {
  text-align: center;
  margin-bottom: 20px;
}

.card-title h2 {
  font-size: 1.3rem;
  margin-top: 8px;
}

.card-title p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.qris-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.qris-frame {
  background: #ffffff;
  border: 2px dashed var(--primary-blue);
  padding: 12px;
  border-radius: 14px;
  margin-bottom: 14px;
}

.qris-frame img {
  width: 100%;
  max-width: 280px;
  border-radius: 8px;
  display: block;
}

.btn-action {
  width: 100%;
  max-width: 320px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.btn-action.primary {
  background-color: var(--primary-blue);
  color: #ffffff;
}

.btn-action.primary:hover {
  background-color: var(--primary-blue-hover);
}

.instructions-box {
  background: var(--box-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
}

.instructions-box h3 {
  font-size: 0.9rem;
  color: var(--primary-blue);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.instructions-box ol {
  padding-left: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.instructions-box strong {
  color: var(--text-dark);
}

.site-footer {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
}

.footer-profile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  padding: 4px 12px;
  border-radius: 20px;
  transition: background-color 0.2s;
}

.footer-profile:hover {
  background: var(--box-bg);
}

.footer-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

.footer-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.footer-divider {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 16px 0;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.btn-social {
  background: var(--btn-social-bg);
  border: 1px solid var(--border-color);
  color: var(--text-dark);
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.copyright {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay-bg);
  backdrop-filter: blur(6px);
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-sheet {
  background: var(--sheet-bg);
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  border: 1px solid var(--border-color);
  border-bottom: none;
  width: 100%;
  max-width: 600px;
  height: 78vh;
  max-height: 640px;
  display: flex;
  flex-direction: column;
  padding: 8px 18px 20px 18px;
  position: relative;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -12px 30px rgba(0, 0, 0, 0.25);
  will-change: transform;
  touch-action: none;
}

.modal-overlay.active .modal-sheet {
  transform: translateY(0);
}

.sheet-drag-area {
  padding: 8px 0 12px 0;
  cursor: grab;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  touch-action: none;
}

.sheet-drag-handle {
  position: relative;
  width: 48px;
  height: 5px;
  background-color: var(--primary-blue);
  opacity: 0.7;
  border-radius: 4px;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s, opacity 0.2s;
}

.sheet-drag-handle::before,
.sheet-drag-handle::after {
  content: "";
  position: absolute;
  top: 0;
  width: 26px;
  height: 5px;
  background-color: inherit;
  border-radius: 4px;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sheet-drag-handle::before {
  left: 0;
  transform-origin: left center;
}

.sheet-drag-handle::after {
  right: 0;
  transform-origin: right center;
}

.sheet-drag-handle.arrow-down::before {
  transform: rotate(18deg);
}
.sheet-drag-handle.arrow-down::after {
  transform: rotate(-18deg);
}

.sheet-drag-handle.arrow-up::before {
  transform: rotate(-18deg);
}
.sheet-drag-handle.arrow-up::after {
  transform: rotate(18deg);
}

.modal-header {
  margin-bottom: 8px;
}

.tab-buttons {
  display: flex;
  gap: 8px;
  background: var(--box-bg);
  padding: 5px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.tab-btn {
  flex: 1;
  padding: 10px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: 9px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.tab-btn.active {
  background: var(--card-bg);
  color: var(--primary-blue);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.modal-body {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding-top: 6px;
  padding-bottom: 60px;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.tab-content {
  display: none;
  width: 100%;
}

.tab-content.active {
  display: flex;
  flex-direction: column;
  flex: 1;
  animation: fadeInSmooth 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

#profileTab.active {
  justify-content: center;
  align-items: center;
}

@keyframes fadeInSmooth {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.profile-card {
  position: relative;
  background-image: url('https://e.top4top.io/p_392145xo11.jpg');
  background-size: cover;
  background-position: center;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  text-align: center;
  width: 100%;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.profile-card-overlay {
  position: absolute;
  inset: 0;
  background: var(--profile-card-overlay);
  backdrop-filter: blur(3px);
  z-index: 1;
}

.profile-card-content {
  position: relative;
  z-index: 2;
  padding: 24px 20px;
}

.profile-avatar-container {
  width: 84px;
  height: 84px;
  margin: 0 auto 12px auto;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--primary-blue);
  box-shadow: 0 0 15px rgba(14, 165, 233, 0.3);
}

.profile-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-name {
  font-size: 1.25rem;
  font-weight: 700;
}

.profile-role {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-blue);
  background: var(--badge-blue-bg);
  padding: 5px 14px;
  border-radius: 20px;
  margin: 8px 0 18px 0;
}

.profile-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--border-color);
  font-size: 0.85rem;
}

.detail-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.detail-label { color: var(--text-muted); }
.detail-value { font-weight: 600; color: var(--text-dark); }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding-top: 4px;
}

.skill-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: transform 0.2s, border-color 0.2s;
  min-height: 140px;
}

.skill-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary-blue);
}

.skill-icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--box-bg);
}

.skill-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.skill-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
}

.floating-footer {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  pointer-events: none;
  z-index: 30;
}

.btn-floating-close {
  pointer-events: auto;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--text-dark);
  padding: 10px 26px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(10px);
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.btn-floating-close:hover {
  transform: scale(1.04);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.animate-fade-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 768px) {
  body {
    padding: 30px 16px;
  }

  .stat-value {
    font-size: 0.95rem;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .hero-banner h1 {
    font-size: 1.6rem;
  }

  .subtitle {
    font-size: 0.88rem;
  }

  .modal-sheet {
    border-radius: 24px;
    border-bottom: 1px solid var(--border-color);
    margin: auto;
    height: auto;
    max-height: 85vh;
  }

  .modal-overlay {
    align-items: center;
    padding: 20px;
  }
}