*{box-sizing:border-box}
:root{
  --bg:#070714;
  --card:rgba(255,255,255,.05);
  --border:rgba(255,255,255,.10);
  --muted:rgba(255,255,255,.72);
  --text:#fff;
  --primary:#7c3aed;
  --warm:#f59e0b;
}

html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:system-ui,Segoe UI,Arial;
  background:var(--bg);
  color:var(--text);
  overflow-x:hidden;
}

a{color:inherit;text-decoration:none}
.wrap{max-width:1100px;margin:0 auto;padding:0 16px}

/* Background FX */
.bg{position:fixed;inset:0;z-index:-2;overflow:hidden}
.gridNoise{
  position:absolute;inset:-20%;
  background:
    radial-gradient(circle at 10% 20%, rgba(124,58,237,.18), transparent 40%),
    radial-gradient(circle at 80% 30%, rgba(245,158,11,.16), transparent 40%),
    radial-gradient(circle at 40% 90%, rgba(59,130,246,.14), transparent 40%),
    linear-gradient(180deg, rgba(255,255,255,.06), transparent 20%),
    radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size:auto,auto,auto,auto, 24px 24px;
  filter:blur(.2px);
  opacity:.9;
}
.orb{position:absolute;border-radius:999px;filter:blur(40px);opacity:.55}
.orb1{width:420px;height:420px;left:-120px;top:120px;background:rgba(124,58,237,.55)}
.orb2{width:520px;height:520px;right:-180px;top:40px;background:rgba(245,158,11,.35)}
.orb3{width:520px;height:520px;left:240px;bottom:-220px;background:rgba(59,130,246,.25)}

/* Navbar */
.topbar{
  position:sticky;top:0;z-index:20;
  background:rgba(7,7,20,.55);
  backdrop-filter:blur(14px);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.topbarInner{
  height:70px;display:flex;align-items:center;justify-content:space-between;
}
.brand{display:flex;gap:10px;align-items:center;font-weight:900;letter-spacing:.4px}
.bolt{display:inline-flex;width:34px;height:34px;align-items:center;justify-content:center;
  border-radius:12px;background:rgba(124,58,237,.2);border:1px solid rgba(124,58,237,.35)
}
.nav{display:flex;gap:18px;align-items:center}
.nav a{
  color:rgba(255,255,255,.78);
  padding:10px 12px;border-radius:12px;
  transition:transform .12s ease, background .12s ease, color .12s ease;
}
.nav a:hover{background:rgba(255,255,255,.06);color:#fff;transform:translateY(-1px)}
.nav a.active{background:rgba(124,58,237,.18);border:1px solid rgba(124,58,237,.25);color:#fff}

.navToggle{
  display:none;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  color:#fff;border-radius:12px;
  width:44px;height:44px;cursor:pointer;
}

.muted{color:var(--muted)}
.small{font-size:.92rem}

/* Buttons */
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  padding:11px 14px;border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.06);
  color:#fff;cursor:pointer;
  transition:transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover{transform:translateY(-1px);box-shadow:0 14px 50px rgba(0,0,0,.35)}
.btn.primary{background:rgba(124,58,237,.9);border-color:rgba(124,58,237,.9)}
.btn.warm{background:rgba(245,158,11,.92);border-color:rgba(245,158,11,.92);color:#111}
.btn.ghost{background:transparent}

/* Hero */
.hero{
  padding:70px 0 24px;
  display:grid;
  grid-template-columns: 1.25fr .75fr;
  gap:18px;
  align-items:stretch;
}
.heroText{
  padding:26px;
  border-radius:22px;
  background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border:1px solid rgba(255,255,255,.10);
}
.hero h1{
  font-size:44px;line-height:1.08;margin:0 0 10px;
  letter-spacing:-.5px;
}
.heroCtas{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}
.heroBadges{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}
.pill{
  padding:8px 10px;border-radius:999px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  font-size:13px;color:rgba(255,255,255,.86);
}

.heroCard{
  padding:22px;border-radius:22px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.10);
  display:flex;flex-direction:column;justify-content:space-between;
}
.miniTitle{font-weight:900;font-size:16px}
.miniMuted{color:rgba(255,255,255,.70);margin-top:6px}
.miniList{margin-top:16px;display:flex;flex-direction:column;gap:10px}
.miniItem{
  display:flex;justify-content:space-between;align-items:center;
  padding:12px;border-radius:16px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.08);
}
.miniHint{margin-top:16px;color:rgba(255,255,255,.7);font-size:13px}

/* Sections */
.section{padding:26px 0}
.sectionHead{display:flex;align-items:flex-end;justify-content:space-between;gap:14px}
.section h2{margin:0 0 6px;font-size:26px}

.grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:14px;margin-top:14px
}

/* Product Card */
.card{
  position:relative;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.10);
  border-radius:20px;
  padding:16px;
  overflow:hidden;
  transition:transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
.card::before{
  content:"";
  position:absolute;inset:-2px;
  background: radial-gradient(circle at 30% 20%, rgba(124,58,237,.18), transparent 45%),
              radial-gradient(circle at 70% 80%, rgba(245,158,11,.12), transparent 45%);
  opacity:.9;
  pointer-events:none;
}
.card:hover{transform:translateY(-2px);box-shadow:0 22px 70px rgba(0,0,0,.45);border-color:rgba(255,255,255,.18)}
.cardInner{position:relative;z-index:1}
.cardTop{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}
.card h3{margin:0;font-size:18px}
.tag{
  padding:6px 10px;border-radius:999px;
  background:rgba(124,58,237,.18);
  border:1px solid rgba(124,58,237,.28);
  font-size:12px;font-weight:800;
}
.ul{margin:10px 0 14px;padding-left:18px;color:rgba(255,255,255,.86)}
.price{font-size:18px;font-weight:950;margin:10px 0}
.cardActions{display:flex;gap:10px;flex-wrap:wrap}
.full{width:100%}

/* History shell */
.cardShell{
  padding:16px;border-radius:20px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.10);
}

/* Table */
.table{
  width:100%;
  border-collapse:collapse;
  background:rgba(0,0,0,.15);
  border:1px solid rgba(255,255,255,.08);
  border-radius:16px;
  overflow:hidden;
}
.table th,.table td{
  padding:10px;
  border-bottom:1px solid rgba(255,255,255,.08);
  text-align:left;
  font-size:13.5px;
}
.badge{
  padding:4px 10px;border-radius:999px;
  border:1px solid rgba(255,255,255,.15);
  display:inline-block;
  text-transform:uppercase;
  font-weight:900;
  font-size:11px;
}
.badge.pending{opacity:.8}
.badge.paid{background:rgba(124,58,237,.25)}
.badge.done{background:rgba(16,185,129,.25)}

/* Modal */
.overlay{position:fixed;inset:0;background:rgba(0,0,0,.6);z-index:50}
.modal{
  position:fixed;top:50%;left:50%;
  transform:translate(-50%,-50%);
  width:min(540px,92vw);
  background:#0f0f22;
  border:1px solid rgba(255,255,255,.12);
  border-radius:22px;
  z-index:60;
}
.hidden{display:none}
.modalHead{display:flex;align-items:center;justify-content:space-between;padding:16px 16px 0}
.modalTitle{font-size:18px;font-weight:950}
.iconBtn{background:transparent;border:none;color:#fff;font-size:18px;cursor:pointer}
.modalBody{padding:16px}
.row{display:flex;flex-direction:column;gap:6px;margin:10px 0}
.row input{
  padding:12px;border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.06);
  color:#fff;
}
.summary{
  padding:14px;border-radius:16px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.10);
  margin-top:10px
}
.actions{display:flex;gap:10px;justify-content:flex-end;margin-top:12px}

.footer{padding:24px 0 40px}

/* ===== History Email Form Styling ===== */
.historyBox{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:12px;
}

.historyBox input{
  padding:12px 14px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.06);
  color:#fff;
  min-width:280px;
  outline:none;
  transition:0.2s ease;
  box-shadow:0 0 0 rgba(124,58,237,0);
}

.historyBox input::placeholder{
  color:rgba(255,255,255,.55);
}

.historyBox input:focus{
  border-color:rgba(124,58,237,.55);
  background:rgba(124,58,237,.08);
  box-shadow:0 0 0 4px rgba(124,58,237,.20);
}

.historyBox button{
  border-radius:16px;
  font-weight:800;
  letter-spacing:.2px;
}

/* History Table wrap spacing */
#historyEmailWrap{
  margin-top:14px;
}

/* CardShell khusus history */
#history .cardShell{
  position:relative;
  overflow:hidden;
}

#history .cardShell::before{
  content:"";
  position:absolute;
  inset:-2px;
  background: radial-gradient(circle at 15% 20%, rgba(124,58,237,.20), transparent 40%),
              radial-gradient(circle at 70% 80%, rgba(245,158,11,.12), transparent 45%);
  opacity:.85;
  pointer-events:none;
}

#history .cardShell > *{
  position:relative;
  z-index:2;
}

/* Mobile nav */
@media(max-width:880px){
  .hero{grid-template-columns:1fr}
  .navToggle{display:inline-flex;align-items:center;justify-content:center}
  .nav{
    position:absolute;left:16px;right:16px;top:70px;
    background:rgba(7,7,20,.88);
    border:1px solid rgba(255,255,255,.10);
    border-radius:18px;
    padding:10px;
    display:none;
    flex-direction:column;
    gap:6px;
  }
  .nav.open{display:flex}
  .nav a{width:100%}
  .hero h1{font-size:36px}
}

/* ===================================================================== */
/* ==================== TAMBAHAN BARU (JANGAN UBAH ATAS) ================= */
/* ===================================================================== */

/* ===== Mobile Fix (HP) ===== */
@media (max-width: 600px){

  /* biar navbar menu turun rapih */
  .nav{
    width: calc(100% - 32px);
  }

  /* hero biar ga kepotong */
  .heroText{
    padding:18px;
  }
  .hero h1{
    font-size:30px;
    line-height:1.15;
  }

  /* tombol CTA biar full */
  .heroCtas .btn{
    width:100%;
  }

  /* grid card jadi 1 kolom */
  .grid{
    grid-template-columns: 1fr !important;
  }

  /* card biar padding ga besar */
  .card{
    padding:14px;
  }

  /* form history input + tombol full */
  .historyBox{
    flex-direction:column;
  }
  .historyBox input,
  .historyBox button{
    width:100%;
    min-width:unset;
  }

  /* modal checkout biar aman */
  .modal{
    width: 95vw;
  }
  .modalBody{
    padding:14px;
  }

  /* input form checkout full */
  .row input{
    width:100%;
  }

  /* tombol modal full */
  .actions{
    flex-direction:column;
    align-items:stretch;
  }
  .actions .btn{
    width:100%;
  }

}

/* ===== Biar table history bisa digeser kanan kiri ===== */
.tableScroll{
  width:100%;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  border-radius:16px;
}

.tableScroll::-webkit-scrollbar{
  height:8px;
}
.tableScroll::-webkit-scrollbar-thumb{
  background:rgba(255,255,255,.15);
  border-radius:999px;
}
.tableScroll::-webkit-scrollbar-track{
  background:transparent;
}

/* Biar table ga mepet di HP */
.table{
  min-width: 800px; /* penting biar scroll muncul */
}
