    :root{
      --bg: #0b0f1a;
      --bg-soft: #101726;
      --card: #121a2b;
      --border: rgba(255,255,255,.08);
      --text: #e9eef5;
      --muted: #9cadc7;
      --gold: #f0c96a;
      --accent: #0ea5e9; 
      --accent-2: #22c55e; 
      --radius: 14px;
      --shadow: 0 10px 30px rgba(0,0,0,.35);
    }

    *{ box-sizing:border-box }
    body{
      margin:0;
      font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
      color: var(--text);
      background:
        radial-gradient(1000px 500px at 10% -10%, rgba(14,165,233,.12), transparent 40%),
        radial-gradient(800px 360px at 110% -10%, rgba(240,201,106,.15), transparent 50%),
        var(--bg);
      min-height:100dvh;
    }

    header{
      padding: 20px 16px 8px;
      text-align:center;
      position: relative;
    }
    header img{
      max-height: 72px;
      filter: drop-shadow(0 4px 14px rgba(0,0,0,.4));
      animation: fadeIn .4s ease both;
    }
    h1{
      font-size: clamp(1.2rem, 3vw, 1.8rem);
      margin: 10px 0 4px;
      color: var(--gold);
      letter-spacing:.2px;
    }
    .subtitle{
      color: var(--muted);
      font-size: .95rem;
    }


    .login-daftar-desktop{ position:absolute; top:18px; right:16px; display:flex; gap:10px; }
    .btn-auth{
      background: linear-gradient(180deg, #e90e0e, #ffe000);
      color:#fff; padding:10px 14px; border-radius:10px; text-decoration:none; font-weight:700;
      border:1px solid var(--border); box-shadow: var(--shadow);
      transition: filter .2s ease, transform .06s ease;
    }
    .btn-auth:hover{ filter:brightness(1.08) }
    .btn-auth:active{ transform: translateY(1px) }
    .btn-auth.daftar{ background: linear-gradient(180deg, #e90e0e, #ffe000); color:#e1e1ff }

    @media (max-width: 768px){
      .login-daftar-desktop{ display:none }
      .login-daftar-mobile{ display:grid; gap:10px; padding: 8px 16px 0; grid-template-columns: 1fr 1fr; }
    }
    @media (min-width: 769px){ .login-daftar-mobile{ display:none } }


    .strip{
      margin: 10px auto 0; width:min(1000px, 92%); overflow:hidden;
      border-top:1px dashed var(--gold); border-bottom:1px dashed var(--gold);
      color: var(--gold); padding: 8px 10px; font-weight:700; white-space:nowrap;
    }
    .strip .inner{
      display:inline-block; animation: slideX 14s linear infinite;
    }
    @keyframes slideX{ from{ transform: translateX(10%) } to{ transform: translateX(-100%) } }


    .search-form{
      display:flex; gap:8px; justify-content:center; margin:16px auto; width:min(680px, 92%);
    }
    .search-form input{
      flex:1; padding:12px 14px; border-radius:12px; border:1px solid var(--border);
      background: var(--bg-soft); color: var(--text); outline:none;
    }
    .search-form button{
      padding:0 14px; border-radius:12px; border:1px solid var(--border);
      background: linear-gradient(180deg, #1f2937, #0f172a); color:#fff; font-weight:700;
    }


    .grid{
      display:grid; gap:18px; padding: 18px 16px; width:min(1280px, 100%); margin:0 auto;
      grid-template-columns: repeat(4, 1fr);
    }
    @media (max-width: 1100px){ .grid{ grid-template-columns: repeat(3, 1fr) } }
    @media (max-width: 820px){  .grid{ grid-template-columns: repeat(2, 1fr) } }
    @media (max-width: 520px){  .grid{ grid-template-columns: 1fr; padding-inline:12px } }


    .card{
      background: linear-gradient(180deg, var(--card), rgba(18,26,43,.92));
      border:1px solid var(--border); border-radius: var(--radius);
      box-shadow: var(--shadow); overflow:hidden; animation: pop .25s ease both;
      display:flex; flex-direction:column;
    }
    @keyframes pop{ from{transform:scale(.99); opacity:.9} to{transform:scale(1); opacity:1} }
    .thumb{
      aspect-ratio: 10/10; width:100%; object-fit:cover;
      display:block; border-bottom:1px solid var(--border);
    }
    .body{ padding:12px 12px 14px; display:grid; gap:8px; }
    .title a{
      color: var(--gold); text-decoration:none; font-weight:800; letter-spacing:.2px;
      display:-webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow:hidden;
    }
    .meta{ color: var(--muted); font-size:.92rem; display:grid; gap:4px }
    .row{ display:flex; gap:8px; flex-wrap:wrap }
    .pill{
      border:1px solid var(--border); padding:6px 8px; border-radius:10px; background: rgba(255,255,255,.03);
    }
    .actions{ display:flex; gap:10px; margin-top:4px }
    .btn{
      flex:1; background: linear-gradient(180deg, #e90e0e, #ad0505); color:#fff;
      padding:10px 12px; border-radius:10px; text-align:center; text-decoration:none; font-weight:800;
      border:0; cursor:pointer;
    }
    .btn.secondary{ background: linear-gradient(180deg, #e97d0e, #ffd60a) }
    .share{ display:flex; align-items:center; gap:10px; margin-top:6px }
    .share a{ color:#fff; opacity:.9; text-decoration:none; font-size:1.05rem }
    .share a:hover{ opacity:1 }


    .pagination{
      display:flex; gap:6px; justify-content:center; margin: 22px 0 36px; flex-wrap:wrap;
    }
    .pagination a{
      padding:8px 12px; border:1px solid var(--border); border-radius:10px;
      background: #636363; color:#fff; text-decoration:none; font-weight:700;
    }
    .pagination a.active, .pagination a:hover{
      background: #ff0000; color:#ffa802; border-color: #ffb200;
    }
    .pagination span.dots{
      padding: 8px 6px;
      color: var(--muted);
      font-weight: 600;
    }


    .popup-overlay{
      position:fixed; inset:0; background: rgba(0,0,0,.6); display:none; place-items:center; z-index: 50;
    }
    .popup-overlay.show{ display:grid }
    .popup-card{
      width:min(420px, 92%); background: var(--card); border:1px solid var(--border);
      border-radius: 16px; overflow:hidden; box-shadow: var(--shadow); animation: pop .22s ease both;
    }
    .popup-card img{ width: 100%; height:auto; display:block }
    .popup-footer{ padding:12px; display:flex; gap:10px; align-items:center; justify-content:space-between }
    .popup-footer a{ color: var(--gold); font-weight:800; text-decoration:none }
    .close{
      position:absolute; top:10px; right:10px; background:#111827; color:#fff;
      border:1px solid var(--border); border-radius:9999px; width:32px; height:32px; display:grid; place-items:center; cursor:pointer;
    }
    @media (max-width: 520px){
      .popup-card{
        width:100%; max-width:none; border-radius: 18px 18px 0 0; position:absolute; bottom:0; left:0; right:0;
      }
    }


    .floating-menu{
      position: fixed; left: 16px; bottom: 16px; display:flex; flex-direction: column-reverse; align-items:center; gap:10px; z-index:40;
    }
    .menu-btn{
      width:48px; height:48px; border-radius:12px; background: var(--gold); color:#111827; border:0;
      display:grid; place-items:center; box-shadow: var(--shadow); cursor:pointer;
      animation: float 2.5s ease-in-out infinite;
    }
    @keyframes float{ 0%{transform:translateY(0)} 50%{transform:translateY(-6px)} 100%{transform:translateY(0)} }
    .menu-items{ display:flex; flex-direction:column; gap:8px; opacity:0; pointer-events:none; transform:translateY(8px); transition:.2s ease }
    .menu-items.show{ opacity:1; pointer-events:auto; transform:translateY(0) }
    .menu-items a img{ width:44px; height:44px; object-fit:cover; border-radius:12px; box-shadow: var(--shadow) }


#withdraw-toast {
  position: fixed;
  top: 16px;
  right: 16px;

  /* reset kemungkinan style lama */
  bottom: auto;
  right: auto;
  width: auto;
  height: auto;
  max-width: 340px;

  background: rgba(15, 23, 42, 0.96);
  color: #fff;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  transform: translateY(-130%);       /* sembunyi di atas */
  transition: opacity 0.35s ease, transform 0.35s ease;
  z-index: 9999;
  pointer-events: none;
}

#withdraw-toast.show {
  opacity: 1;
  transform: translateY(0);            /* turun sedikit dari atas */
  pointer-events: auto;
}

#withdraw-toast .toast-badge {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #22c55e, #a3e635);
  color: #022c22;
  padding: 3px 8px;
  border-radius: 999px;
  display: inline-block;
  font-weight: 700;
}

#withdraw-toast .toast-text {
  font-size: 13px;
  line-height: 1.4;
  margin-top: 2px;
}

#withdraw-toast .amount {
  color: #4ade80;
  font-weight: 700;
}

/* Mobile: agak mepet tapi tetap atas kanan */
@media (max-width:480px){
  #withdraw-toast{
    top: 8px;
    right: 8px;
    bottom: auto;
    left: auto;
    font-size: 12px;
    padding: 9px 11px;
    max-width: 92vw;
  }
}
