*, *::before, *::after {
      margin: 0; padding: 0;
      box-sizing: border-box;
      -webkit-tap-highlight-color: transparent;
    }

    :root {
      /* NEO-BRUTALISM — THEME TERANG */
      --bg: #FFF6E5;
      --surface: #FFFFFF;
      --surface2: #FFF0D4;
      --border: #111111;
      --border2: #111111;
      --text: #111111;
      --subtext: #3a3a3a;
      --accent: #FFD43B;
      --accent2: #4D7CFE;
      --accent3: #FF5C8A;
      --accent-glow: rgba(255,212,59,0.3);
      --get: #4D7CFE;
      --get-bg: #4D7CFE;
      --post: #FF5C8A;
      --post-bg: #FF5C8A;
      --product: #111111;
      --product-bg: #FFD43B;
      --mono: 'JetBrains Mono', monospace;
      --sans: 'DM Sans', sans-serif;
      --bw: 3px;
      --shadow-off: 5px;
      --shadow: var(--shadow-off) var(--shadow-off) 0 0 var(--border);
      --shadow2: 3px 3px 0 0 var(--border);
      --shadow-sm: 2px 2px 0 0 var(--border);
      --radius: 0px;
    }
    
    html.dark {
      /* NEO-BRUTALISM — THEME GELAP (Coklat Hangat) */
      --bg: #2B2116;
      --surface: #3A2E1F;
      --surface2: #453626;
      --border: #111111;
      --border2: #111111;
      --text: #F5EEE0;
      --subtext: #C9B8A0;
      --accent: #FF8A3D;
      --accent2: #A78BFA;
      --accent3: #FF6FB5;
      --accent-glow: rgba(255,138,61,0.28);
      --get: #A78BFA;
      --get-bg: #A78BFA;
      --post: #FF6FB5;
      --post-bg: #FF6FB5;
      --product: #2B2116;
      --product-bg: #FF8A3D;
      --shadow: var(--shadow-off) var(--shadow-off) 0 0 var(--border);
      --shadow2: 3px 3px 0 0 var(--border);
      --shadow-sm: 2px 2px 0 0 var(--border);
    }

    body {
      font-family: var(--sans);
      background: var(--bg);
      color: var(--text);
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 24px 16px 40px;
      transition: background 0.3s, color 0.3s;
    }

    /* TOP BAR */
    .topbar {
      width: 100%;
      max-width: 520px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 16px;
      padding: 10px 16px;
      background: var(--surface);
      border: var(--bw) solid var(--border);
      border-radius: var(--radius);
    }

    .topbar-left {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .avatar {
      width: 38px;
      height: 38px;
      border-radius: 50%;
      object-fit: cover;
      border: 2.5px solid var(--border);
    }

    .avatar-initial {
      background: var(--accent);
      color: #000000;
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: var(--mono);
      font-size: 16px;
      font-weight: 700;
      border: 2.5px solid var(--border);
    }

    .brand-name {
      font-family: var(--mono);
      font-size: 14px;
      font-weight: 700;
      color: var(--text);
    }

    .brand-tag {
      font-family: var(--mono);
      font-size: 10px;
      color: var(--subtext);
      margin-top: 1px;
    }

    .topbar-right {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .status-dot {
      width: 8px; height: 8px;
      background: var(--get);
      border-radius: 50%;
      box-shadow: 0 0 6px var(--get);
      animation: pulse 2s infinite;
    }

    @keyframes pulse {
      0%, 100% { opacity: 1; }
      50% { opacity: 0.4; }
    }

    .status-text {
      font-family: var(--mono);
      font-size: 11px;
      color: var(--subtext);
    }

    /* THEME BTN */
    .theme-btn {
      background: var(--accent);
      border: 2.5px solid var(--border);
      border-radius: var(--radius);
      padding: 5px 10px;
      font-size: 14px;
      cursor: pointer;
      color: #000000;
      box-shadow: var(--shadow-sm);
      transition: transform 0.15s, box-shadow 0.15s;
    }
    .theme-btn:hover {
      transform: translate(-2px,-2px);
      box-shadow: 5px 5px 0 0 var(--border);
    }
    .theme-btn:active {
      transform: translate(2px,2px);
      box-shadow: 0 0 0 0 var(--border);
    }
    
    /* BANNER SLIDER */
    .banner-slider {
      width: 100%;
      max-width: 520px;
      overflow: hidden;
      margin-bottom: 18px;
    }
    
    .banner-track {
      display: flex;
      gap: 14px;
      overflow-x: auto;
      scroll-behavior: smooth;
      scrollbar-width: none;
      -ms-overflow-style: none;
      padding-bottom: 4px;
    }
    
    .banner-track::-webkit-scrollbar {
      display: none;
    }
    
    /* CARD */
    .banner-card {
      flex: 0 0 190px;
      border-radius: var(--radius);
      overflow: hidden;
      background: var(--surface);
      border: var(--bw) solid var(--border);
      box-shadow: var(--shadow);
      transition: transform 0.2s, box-shadow 0.2s;
    }

    .banner-card:hover {
      transform: translate(-2px,-2px);
      box-shadow: 7px 7px 0 0 var(--border);
    }

    .banner-card:active {
      transform: translate(5px,5px);
      box-shadow: 0 0 0 0 var(--border);
    }

    /* IMAGE */
    .banner-image-wrap {
      position: relative;
      aspect-ratio: 4 / 3;
      overflow: hidden;
    }

    .banner-image {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      pointer-events: none;
      user-select: none;
      -webkit-user-select: none;
      -webkit-user-drag: none;
      -webkit-touch-callout: none;
    }

    /* HARD DIVIDER (ganti gradient halus dengan garis tegas) */
    .banner-image-wrap {
      border-bottom: var(--bw) solid var(--border);
    }
    .banner-image-wrap::after {
      content: none;
    }
    
    /* CONTENT */
    .banner-content {
      position: relative;
      z-index: 2;
      padding: 12px 16px 18px;
    }
    
    .banner-title {
      font-family: var(--mono);
      font-size: 14px;
      font-weight: 700;
      margin-bottom: 6px;
      color: var(--text);
    }
    
    .banner-desc {
      font-size: 12px;
      line-height: 1.5;
      color: var(--subtext);
    }
    
    /* DESKTOP */
    @media (min-width: 900px) {
    
      .banner-slider {
        max-width: 1100px;
      }

      .banner-card {
        flex: 0 0 210px;
      }

      .banner-title {
        font-size: 16px;
      }

      .banner-desc {
        font-size: 13px;
      }
    }
    
    /* POPUP OVERLAY */
.banner-popup-overlay {

  position: fixed;
  inset: 0;

  background: rgba(0,0,0,0.6);

  backdrop-filter: none;

  display: flex;
  align-items: center;
  justify-content: center;

  z-index: 999999;

  opacity: 0;
  pointer-events: none;

  transition: 0.25s;
}

.banner-popup-overlay.show {

  opacity: 1;
  pointer-events: auto;
}

/* POPUP */
.banner-popup {

  width: 90%;
  max-width: 320px;

  background: var(--surface);

  border:
    var(--bw) solid var(--border);

  border-radius: var(--radius);

  padding: 22px;

  transform: scale(0.9);

  transition: 0.25s;
}

.banner-popup-overlay.show .banner-popup {

  transform: scale(1);
}

.banner-popup-title {

  font-family: var(--mono);

  font-size: 16px;
  font-weight: 700;

  text-align: center;

  margin-bottom: 18px;
}

/* BUTTONS */
.banner-popup-buttons {

  display: flex;
  gap: 12px;
}

.popup-btn {

  flex: 1;

  text-decoration: none;

  text-align: center;

  padding: 12px;

  border-radius: var(--radius);

  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;

  transition: transform 0.15s, box-shadow 0.15s;
  border: 2.5px solid var(--border);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.popup-btn.wa {

  background: var(--get-bg);
  color: #000000;
}

.popup-btn.tele {

  background: var(--post-bg);
  color: #ffffff;
}

.popup-btn:hover {

  transform: translate(-2px,-2px);
  box-shadow: 5px 5px 0 0 var(--border);
}

.popup-btn:active {
  transform: translate(2px,2px);
  box-shadow: 0 0 0 0 var(--border);
}

    /* SEARCH */
    .search-wrap {
      width: 100%;
      max-width: 520px;
      position: relative;
      margin-bottom: 14px;
      transition: transform 0.15s;
    }
    
    .search-icon {
      position: absolute;
      left: 14px;
      top: 50%;
      transform: translateY(-50%);
      color: var(--subtext);
      pointer-events: none;
      z-index: 2;
      display: flex;
      align-items: center;
    }
    
    .search-icon svg {
      color: inherit;
    }
  
    .search-input {
      width: 100%;
      padding: 13px 16px 13px 40px;
      font-family: var(--mono);
      font-size: 13px;
      background: var(--surface);
      border: var(--bw) solid var(--border);
      border-radius: var(--radius);
      color: var(--text);
      outline: none;
      transition: 0.15s;
      box-shadow: var(--shadow2);
    }

    .search-input::placeholder { color: var(--subtext); }

    /* Fokus: wrap (icon ikut) turun menutupi bayangan, bukan naik menjauhinya */
    .search-wrap:focus-within {
      transform: translate(3px, 3px);
    }
    .search-wrap:focus-within .search-input {
      box-shadow: 0 0 0 0 var(--border);
    }

    /* CATEGORY HEADER */
    .category-header {
      position: relative;
      width: 100%;
      max-width: 520px;
      background: var(--accent);
      border: var(--bw) solid var(--border);
      border-radius: var(--radius);
      min-height: 76px;
      padding: 14px 150px 14px 18px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 14px;
      box-shadow: var(--shadow);
      overflow: hidden;
    }

    .category-header > div:first-child {
      position: relative;
      z-index: 2;
    }

    .category-gift {
      position: absolute;
      top: 0;
      right: 0;
      bottom: 0;
      z-index: 1;
      width: 150px;
      height: 100%;
      object-fit: cover;
      object-position: center center;
      opacity: 1;
      filter: saturate(0.82) contrast(0.94);
      pointer-events: none;
      user-select: none;
      -webkit-user-select: none;
      -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        rgba(0, 0, 0, 0.12) 22%,
        rgba(0, 0, 0, 0.58) 58%,
        #000000 82%,
        #000000 100%
      );
      mask-image: linear-gradient(
        to right,
        transparent 0%,
        rgba(0, 0, 0, 0.12) 22%,
        rgba(0, 0, 0, 0.58) 58%,
        #000000 82%,
        #000000 100%
      );
    }
    
    @media (min-width: 768px) {
      .category-gift {
        width: clamp(190px, 18vw, 300px);
      }
    }

    .category-header .category-label,
    .category-header .category-name {
      color: #000000;
    }

    .category-label {
      font-family: var(--mono);
      font-size: 10px;
      color: var(--subtext);
      letter-spacing: 0.08em;
      text-transform: uppercase;
      margin-bottom: 3px;
    }

    .category-name {
      font-family: var(--mono);
      font-size: 20px;
      font-weight: 700;
      color: var(--text);
    }

    /* ENDPOINT CARDS */
    .endpoints {
      width: 100%;
      max-width: 520px;
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 12px;
    }

    /* Card statis (channel/group) tetap full width, bukan grid produk */
    .endpoints > .copy-card {
      grid-column: 1 / -1;
    }

    .card {
      background: var(--surface);
      border: var(--bw) solid var(--border);
      border-radius: var(--radius);
      padding: 18px 20px;
      transition: transform 0.18s, box-shadow 0.18s;
      cursor: pointer;
      box-shadow: var(--shadow2);
      text-decoration: none;
      color: inherit;
      display: block;
      position: relative;
      overflow: hidden;
    }

    .card::before {
      content: none;
    }

    .card:hover {
      transform: translate(-2px,-2px);
      box-shadow: 5px 5px 0 0 var(--border);
    }

    .card:active,
    .card.active {
      transform: translate(3px,3px);
      box-shadow: 0 0 0 0 var(--border);
    }

    .card-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 10px;
    }

    .methods {
      display: flex;
      gap: 6px;
    }

    .method-tag {
      font-family: var(--mono);
      font-size: 11px;
      font-weight: 700;
      padding: 3px 10px;
      border-radius: var(--radius);
      letter-spacing: 0.02em;
      border: 2px solid var(--border);
    }

    .method-tag.get {
      color: #000000;
      background: var(--get-bg);
    }

    .method-tag.post {
      color: #ffffff;
      background: var(--post-bg);
    }

    html.dark .method-tag.post {
      color: #000000;
    }

    .method-tag.product {
      color: var(--product);
      background: var(--product-bg);
    }

    .chevron {
      color: var(--text);
      font-size: 14px;
      transition: transform 0.2s;
    }

    .card:hover .chevron { transform: translateX(3px); }

    .endpoint-path {
      font-family: var(--mono);
      font-size: 15px;
      font-weight: 700;
      color: var(--text);
      margin-bottom: 5px;
    }

    .endpoint-path span {
      color: var(--accent);
    }

    .endpoint-desc {
      font-size: 13px;
      color: var(--subtext);
      line-height: 1.5;
    }
    
    .expand-content {
  max-height: 0;
  overflow: hidden;

  opacity: 0;
  transform: translateY(-8px);

  transition: all 0.25s ease;
}

.card.active .expand-content {
  max-height: none;

  opacity: 1;
  transform: translateY(0);

  margin-top: 14px;
}
    
    .expand-box {
      background: var(--surface2);
      border: var(--bw) solid var(--border);
      border-radius: var(--radius);
      padding: 14px;
    }
    
    .expand-buttons {
      display: flex;
      gap: 10px;
      margin-top: 16px;
      margin-bottom: 12px;
    }
    
    .expand-btn {
      flex: 1;
      text-align: center;
      text-decoration: none;
      padding: 10px;
      border-radius: var(--radius);
      font-family: var(--mono);
      font-size: 12px;
      font-weight: 700;
      transition: transform 0.15s, box-shadow 0.15s;
      border: 2.5px solid var(--border);
      box-shadow: var(--shadow-sm);
    }
   
    .expand-btn.wa {
      background: var(--get-bg);
      color: #000000;
    }
    
    .expand-btn.tele {
      background: var(--post-bg);
      color: #ffffff;
    }

    html.dark .expand-btn.tele {
      color: #000000;
    }
    
    .expand-btn:hover {
      transform: translate(-2px,-2px);
      box-shadow: 4px 4px 0 0 var(--border);
    }

    .expand-btn:active {
      transform: translate(2px,2px);
      box-shadow: 0 0 0 0 var(--border);
    }
    
    .expand-footer {
      font-size: 12px;
      color: var(--subtext);
      line-height: 1.5;
      padding: 12px;
      background: var(--surface2);
      border: var(--bw) solid var(--border2);
      border-radius: 0;
      white-space: pre-line;
    }
    
    /* COPY URL */
    .copy-popup {
      position: fixed;
      left: 50%;
      bottom: 24px;
      transform: translateX(-50%) translateY(20px);
      background: var(--surface);
      border: var(--bw) solid var(--border);
      color: var(--text);
      padding: 12px 16px;
      border-radius: var(--radius);
      font-family: var(--mono);
      font-size: 12px;
      font-weight: 700;
      box-shadow: var(--shadow);
      opacity: 0;
      pointer-events: none;
      transition: 0.25s ease;
      z-index: 9999;
      text-align: center;
    }
    
    .copy-popup.show {
      opacity: 1;
      transform: translateX(-50%) translateY(0);
    }
    
    .copy-popup.success {
      background: var(--accent3);
      color: #000000;
    }
    
    .copy-popup.error {
      background: var(--accent);
      color: #000000;
    }

    @media (min-width: 900px) {
      .copy-popup {
        bottom: 34px;
        padding: 14px 22px;
        font-size: 13px;
        border-radius: var(--radius);
        min-width: 280px;
        max-width: 420px;
        box-shadow: 8px 8px 0 0 var(--border);
      }
    }
    
    /* LOGIN HINT POPUP (mirip theme-popup, mengarah ke dock) */
    .login-hint-popup {
      position: fixed;
      bottom: 78px;
      left: 50%;
      transform: translateX(-50%) translateY(8px);
      background: var(--accent2);
      color: #ffffff;
      border: var(--bw) solid var(--border);
      padding: 10px 14px;
      border-radius: var(--radius);
      font-size: 12px;
      font-weight: 700;
      font-family: var(--mono);
      box-shadow: var(--shadow);
      z-index: 99999;
      opacity: 0;
      pointer-events: none;
      transition: 0.25s;
      max-width: 210px;
      line-height: 1.5;
      text-align: center;
    }

    /* panah kecil mengarah ke bawah (dock) */
    .login-hint-popup::after {
      content: '';
      position: absolute;
      bottom: -8px;
      left: 50%;
      transform: translateX(-50%) rotate(45deg);
      width: 12px;
      height: 12px;
      background: var(--accent2);
      border-right: var(--bw) solid var(--border);
      border-bottom: var(--bw) solid var(--border);
    }

    .login-hint-popup.show {
      opacity: 1;
      transform: translateX(-50%) translateY(0);
    }

    @media (max-width: 480px) {
      .login-hint-popup {
        bottom: 68px;
      }
    }

    /* MINI GRID */
.mini-grid {

  width: 100%;
  max-width: 520px;

  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 12px;

  margin-bottom: 14px;
}

/* MINI CARD */
.mini-card {
  position: relative;
  background: var(--surface);
  border: var(--bw) solid var(--border);
  border-radius: var(--radius);
  padding: 10px;
  min-height: 60px;
  overflow: hidden;
  cursor: pointer;
  color: var(--text);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  box-shadow: var(--shadow2);
  backdrop-filter: none;
}

.mini-card svg {
  color: inherit;
}

.mini-card.copy-card {
  display: block;
  text-decoration: none;
}

.mini-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 18px;
  margin-bottom: 4px;
}

.mini-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  line-height: 0;
}

.mini-card-icon svg {
  display: block;
  width: 18px;
  height: 18px;
}

.mini-card:hover {

  transform: translate(-2px,-2px);

  box-shadow: 5px 5px 0 0 var(--border);
}

.mini-card:active {

  transform: translate(3px,3px);

  box-shadow: 0 0 0 0 var(--border);
}

  /* TEXT */
  .mini-title {
    font-family: var(--mono);
    font-size: 14px;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
  }

  .mini-desc {
    font-size: 12px;
    color: var(--subtext);
    line-height: 1.5;
  }

/* MOBILE */
@media (max-width: 520px) {

  .mini-grid {

    grid-template-columns: 1fr 1fr;
  }

}

@media (min-width: 900px) {

  .mini-grid {

    grid-template-columns: repeat(4, 1fr);

    justify-content: flex-start;

    max-width: 1100px;

    margin-left: 0;
    margin-right: auto;
  }

}

/* OVERLAY */
.testi-overlay {

  position: fixed;
  inset: 0;

  background: rgba(0,0,0,0.6);

  backdrop-filter: none;

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  pointer-events: none;

  transition: 0.25s;

  z-index: 99999;
}

.testi-overlay.show {

  opacity: 1;
  pointer-events: auto;
}

/* POPUP */
.testi-popup {

  width: 92%;
  max-width: 760px;

  background: var(--surface);

  border: var(--bw) solid var(--border);

  border-radius: var(--radius);

  padding: 18px;
}

/* HEADER */
.testi-header {

  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-bottom: 16px;
}

.testi-title {

  font-family: var(--mono);

  font-size: 16px;

  font-weight: 700;
}

.testi-sub {

  font-size: 12px;

  color: var(--subtext);

  margin-top: 2px;
}

.testi-close {

  width: 34px;
  height: 34px;

  border-radius: var(--radius);

  border: 2.5px solid var(--border);

  background: var(--accent);

  color: #000000;

  font-weight: 700;

  cursor: pointer;

  box-shadow: var(--shadow-sm);
}

.testi-close:hover {
  transform: translate(-2px,-2px);
  box-shadow: 4px 4px 0 0 var(--border);
}

.testi-close:active {
  transform: translate(2px,2px);
  box-shadow: 0 0 0 0 var(--border);
}

/* SLIDER */
.testi-slider {

  display: flex;

  gap: 14px;

  overflow-x: auto;

  scroll-behavior: smooth;

  scrollbar-width: none;
}

.testi-slider::-webkit-scrollbar {
  display: none;
}

/* CARD */
.testi-card {

  flex: 0 0 220px;

  background: var(--surface2);

  border: var(--bw) solid var(--border);

  border-radius: var(--radius);

  overflow: hidden;
}

/* IMAGE */
.testi-img {

  width: 100%;

  aspect-ratio: 4 / 5;

  object-fit: cover;

  display: block;
  
  pointer-events: none;

  user-select: none;

  -webkit-user-drag: none;

  -webkit-touch-callout: none;
}

/* CONTENT */
.testi-content {

  padding: 14px;
}

.testi-date {

  font-size: 11px;

  color: var(--subtext);

  margin-bottom: 6px;
}

.testi-name {

  font-family: var(--mono);

  font-size: 13px;

  font-weight: 700;

  margin-bottom: 4px;
}

.testi-desc {

  font-size: 12px;

  color: var(--subtext);

  line-height: 1.5;
}

.testi-meta {

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 10px;

  margin-top: -5px;
}

.like-btn {

  display: flex;

  align-items: center;

  gap: 5px;

  background: transparent;

  border: none;

  color: var(--subtext);

  cursor: pointer;

  font-size: 18px;

  font-family: var(--mono);

  transition: 0.25s;
}

.like-btn:hover {

  transform: scale(1.08);
}

.like-btn.liked {

  color: #e53935;
}

.like-btn.pop {
  animation: likePop 0.35s ease;
}

@keyframes likePop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.5); }
  100% { transform: scale(1); }
}

    /* DONATION */
.donation-card {

  width: 100%;
  max-width: 520px;

  background: var(--surface);

  border: var(--bw) solid var(--border);

  border-radius: var(--radius);

  overflow: hidden;

  margin-top: 18px;

  box-shadow: var(--shadow);

  transition: transform 0.2s, box-shadow 0.2s;

}

.donation-card:hover {

  transform: translate(-2px,-2px);

  box-shadow: 7px 7px 0 0 var(--border);

}

.donation-card:active {

  transform: translate(5px,5px);

  box-shadow: 0 0 0 0 var(--border);

}

.donation-image {

  width: 100%;

  display: block;

  aspect-ratio: 16 / 8;

  object-fit: cover;

  user-select: none;

  pointer-events: none;

}

.donation-content {

  padding: 18px;

}

.donation-title {

  font-family: var(--mono);

  font-size: 17px;

  font-weight: 700;

  margin-bottom: 8px;

  color: var(--text);

}

.donation-desc {

  font-size: 13px;

  line-height: 1.6;

  color: var(--subtext);

  margin-bottom: 16px;

}

.donation-btn {

  display: inline-flex;

  align-items: center;

  justify-content: center;

  text-decoration: none;

  background: var(--accent);

  color: #000000;

  padding: 11px 16px;

  border: 2.5px solid var(--border);

  border-radius: var(--radius);

  font-family: var(--mono);

  font-size: 12px;

  font-weight: 700;

  box-shadow: var(--shadow-sm);

  transition: transform 0.15s, box-shadow 0.15s;

}

.donation-btn:hover {

  transform: translate(-2px,-2px);

  box-shadow: 5px 5px 0 0 var(--border);

}

.donation-btn:active {
  transform: translate(2px,2px);
  box-shadow: 0 0 0 0 var(--border);
}

/* DONATION BUTTONS */
.donation-buttons {

  display: flex;

  gap: 10px;

}

/* QRIS BUTTONS */
.qris-buttons {

  display: flex;

  gap: 10px;

  margin-top: 14px;

}

.qris-buttons .donation-btn {

  flex: 1;

}

/* CLOSE BUTTON */
.qris-close {

  background: var(--surface2);

  color: var(--text);

  border: 2.5px solid var(--border);

}

.qris-close:hover {

  background: var(--accent);

  color: #000000;

}

.qris-btn {

  background: var(--surface2);

  color: var(--text);

  border: 2.5px solid var(--border);

}

.qris-btn:hover {

  background: var(--accent2);

  color: #ffffff;

}

/* QRIS POPUP */
.qris-popup-overlay {

  position: fixed;

  inset: 0;

  background: rgba(0,0,0,0.65);

  backdrop-filter: none;

  display: flex;

  align-items: center;

  justify-content: center;

  z-index: 999999;

  opacity: 0;

  pointer-events: none;

  transition: 0.25s;

}

.qris-popup-overlay.show {

  opacity: 1;

  pointer-events: auto;

}

.qris-popup {

  width: 90%;

  max-width: 340px;

  background: var(--surface);

  border-radius: var(--radius);

  padding: 14px;

  border: var(--bw) solid var(--border);

  box-shadow: 8px 8px 0 0 var(--border);

  transform: scale(0.92);

  transition: 0.25s;

}

.qris-popup-overlay.show .qris-popup {

  transform: scale(1);

}

.qris-image {

  width: 100%;

  display: block;

  border-radius: var(--radius);

  border: var(--bw) solid var(--border);

  user-select: none;

  pointer-events: none;

}

    /* FOOTER */
    .footer {
      margin-top: 24px;
      font-family: var(--mono);
      font-size: 11px;
      color: var(--subtext);
      text-align: center;
    }

    /* HIDDEN CARD */
    .card.hidden { display: none; }

    /* Animations */
    .card {
      animation: fadeUpSafe 0.3s ease both;
    }
    .card:nth-child(1) { animation-delay: 0.05s; }
    .card:nth-child(2) { animation-delay: 0.1s; }
    .card:nth-child(3) { animation-delay: 0.15s; }

    /* Versi aman: pakai margin, bukan transform, supaya tidak bentrok
       dengan transform interaktif (hover/focus/active) di elemen yang sama */
    @keyframes fadeUpSafe {
      from { opacity: 0; margin-top: 12px; }
      to   { opacity: 1; margin-top: 0; }
    }

    .topbar { animation: fadeUpSafe 0.3s ease both; }
    .search-wrap { animation: fadeUpSafe 0.3s ease 0.04s both; }
    .category-header { animation: fadeUpSafe 0.3s ease 0.06s both; }
    
    /* DESKTOP RESPONSIVE */
    @media (min-width: 900px) {
      body {
        padding: 40px 24px 60px;
      }
      
      .topbar,
      .search-wrap,
      .category-header,
      .endpoints {
        max-width: 1100px;
      }
      
      .endpoints {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
        align-items: start;
      }

      .endpoints > .copy-card {
        grid-column: 1 / -1;
      }

      .card {
        height: fit-content;
      }

      .category-header {
        padding: 20px 174px 20px 24px;
      }

      .category-name {
        font-size: 28px;
      }

      .endpoint-path {
        font-size: 18px;
      }

      .endpoint-desc {
        font-size: 14px;
      }
 
      .footer {
        margin-top: 40px;
        font-size: 12px;
      }
    }
    
    /* EXTRA LARGE SCREEN */
    @media (min-width: 1400px) {
      .topbar,
      .search-wrap,
      .category-header,
      .endpoints {
        max-width: 1280px;
      }

      .endpoints {
        grid-template-columns: repeat(3, 1fr);
      }
    }

/* ============================================================
   SKELETON LOADING (banner, produk, testimoni saat data Supabase belum masuk)
   ============================================================ */

@keyframes skeleton-shimmer {
  0% { background-position: -200px 0; }
  100% { background-position: 200px 0; }
}

.skeleton {
  background: linear-gradient(
    90deg,
    var(--surface2) 25%,
    var(--accent2) 50%,
    var(--surface2) 75%
  );
  background-size: 400px 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
  border-radius: var(--radius);
  border: var(--bw) solid var(--border);
}

/* Banner skeleton */
.banner-skeleton {
  flex: 0 0 240px;
  height: 130px;
  margin-right: 12px;
}

/* Produk / card skeleton */
.card-skeleton {
  aspect-ratio: 1 / 1;
  border: var(--bw) solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  animation: none;
  position: relative;
  display: flex;
  flex-direction: column;
}

.card-skeleton::before {
  content: "";
  display: block;
  flex: 1;
  background: linear-gradient(
    90deg,
    var(--surface2) 25%,
    var(--accent2) 50%,
    var(--surface2) 75%
  );
  background-size: 400px 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
}

.card-skeleton::after {
  content: "";
  display: block;
  height: 46px;
  margin: 12px 14px 14px;
  background:
    linear-gradient(var(--surface2), var(--surface2)) 0 0 / 60% 14px no-repeat,
    linear-gradient(var(--surface2), var(--surface2)) 0 22px / 85% 10px no-repeat;
}

/* Testimoni skeleton */
.testi-skeleton {
  flex: 0 0 200px;
  height: 160px;
  margin-right: 12px;
}

/* Pesan kosong/gagal (fallback) — tampil sebagai card, bukan teks polos */
.load-empty-msg {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  padding: 24px 16px;
  width: 100%;
  border: var(--bw) dashed var(--border);
  border-radius: var(--radius);
  background: var(--surface2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.load-empty-msg .empty-icon {
  font-size: 22px;
  opacity: 0.7;
}

/* ============================================================
   DOCK BAR — pill navbar dengan sliding indicator
   (mengambang di bawah, indikator bergeser mengikuti item aktif)
   ============================================================ */

.dock-bar {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  background: var(--surface);
  border: var(--bw) solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  z-index: 500;
  backdrop-filter: none;
}

.dock-indicator {
  position: absolute;
  top: 6px;
  left: 6px;
  height: calc(100% - 12px);
  width: 0;
  border-radius: 999px;
  background: var(--accent);
  opacity: 0;
  transition:
    transform 0.4s cubic-bezier(0.65, 0, 0.35, 1),
    width 0.4s cubic-bezier(0.65, 0, 0.35, 1),
    opacity 0.2s ease;
  z-index: 0;
}

.dock-indicator.ready {
  opacity: 1;
}

.dock-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
}

.dock-icon svg {
  width: 20px;
  height: 20px;
}

.dock-label {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  transition: color 0.3s ease;
}

.dock-item {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  background: transparent;
  border: none;
  color: var(--subtext);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.dock-item.indicator-active {
  color: #000000;
  font-weight: 700;
}

.dock-item.indicator-active .dock-icon {
  color: #000000;
}

html.dark .dock-item.indicator-active,
html.dark .dock-item.indicator-active .dock-icon {
  color: #000000;
}

@media (max-width: 480px) {
  .dock-bar {
    bottom: 14px;
    padding: 5px;
  }
  .dock-indicator {
    top: 5px;
    height: calc(100% - 10px);
  }
  .dock-item {
    height: 44px;
    padding: 0 14px;
    gap: 6px;
  }
  .dock-icon svg {
    width: 18px;
    height: 18px;
  }
  .dock-label {
    font-size: 12px;
  }
}


/* ============================================================
   PRODUCT CARD — rasio 4:5, gambar dengan fade, overlay teks
   ============================================================ */

.product-card {
  position: relative;
  aspect-ratio: 1 / 1;
  padding: 0;
  overflow: hidden;
  display: block;
}

.product-card-image-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.product-card-image {
  position: absolute;
  inset: 0;
  background-color: var(--surface2);
  background-size: cover;
  background-position: center;
  transition: transform 0.3s ease;
}

.product-card:hover .product-card-image {
  transform: scale(1.05);
}

.product-card-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 65%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.75) 100%
  );
  pointer-events: none;
}

.product-card-top {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
}

.product-card-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 24px 14px 14px;
}

.product-card-info .endpoint-path {
  color: #fff;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-card-info .endpoint-desc {
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--mono);
  font-size: 11px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   PRODUCT DETAIL MODAL — muncul di tengah layar
   ============================================================ */

.product-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 900;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.product-modal-overlay.show {
  display: flex;
}

.product-modal-box {
  background: var(--surface);
  border: var(--bw) solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow2);
  max-width: 420px;
  width: 100%;
  max-height: 85vh;
  overflow: visible;
  position: relative;
  animation: productModalIn 0.25s ease;
}

.product-modal-body {
  padding: 24px 18px 18px;
  position: relative;
  max-height: 85vh;
  overflow-y: auto;
  border-radius: var(--radius);
}

@keyframes productModalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.product-modal-close {
  position: absolute;
  top: -16px;
  right: -16px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border-radius: 0;
  border: var(--bw) solid var(--border);
  background: #e53935;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 480px) {
  .product-card-info .endpoint-path {
    font-size: 13px;
  }
  .product-card-info .endpoint-desc {
    font-size: 10px;
  }
}

/* ============================================================
   TOMBOL BELI DENGAN COIN + MODAL KONFIRMASI BELI
   ============================================================ */

.expand-btn.buy-coin {
  display: block;
  width: 100%;
  text-align: center;
  padding: 12px;
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  border: 2.5px solid var(--border);
  box-shadow: var(--shadow-sm);
  background: var(--accent);
  color: #ffffff;
  cursor: pointer;
  margin-top: 4px;
  transition: transform 0.15s, box-shadow 0.15s;
}

.expand-btn.buy-coin:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 0 var(--border);
}

.expand-btn.buy-coin:active {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 0 var(--border);
}

.buy-admin-footer {
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--subtext);
  margin-top: 8px;
  margin-bottom: 12px;
}

.buy-confirm-title {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
  margin-bottom: 4px;
}

.buy-confirm-price {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--subtext);
  margin-bottom: 16px;
}

.buy-confirm-row {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  margin-bottom: 14px;
}

.buy-confirm-row .form-row-qty {
  flex: 1;
  margin-bottom: 0;
}

.buy-confirm-total {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 15px;
  color: var(--accent);
  white-space: nowrap;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface2);
  box-sizing: border-box;
}

/* ============================================================
   FORM & BUTTON UMUM (dipakai di modal konfirmasi beli, index.html)
   ============================================================ */

.form-row { margin-bottom: 14px; text-align: left; }
.form-row label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--text);
  font-family: var(--mono);
}
.form-row input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 13px;
  box-sizing: border-box;
  background: var(--surface2);
  color: var(--text);
}
.form-row input:focus { outline: none; border-color: var(--accent); }

.btn {
  padding: 11px 18px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 13px;
  width: 100%;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.deposit-error {
  color: #d33;
  font-size: 12px;
  font-family: var(--mono);
  margin-top: 4px;
  min-height: 14px;
}
