
 body {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 1)), url('/gambar/kotak_mail_wow_classic.webp');
  background-color: #1b2838;
  color: #c7d5e0;
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
}
.container h1 { color: #ffd200; }

/* --- SIDEBAR GAME --- */
.main-flex-row {
  display: flex;
  gap: 28px;
  min-height: 72vh;
}
.sidebar-game {
  min-width: 245px;
  max-width: 270px;
  background: transparent;
  border-radius: 1.8em;
  box-shadow: 0 2px 32px #0004, 0 2px 8px #10162488;
  padding: 28px 16px 24px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: sticky;
  top: 94px;
  height: fit-content;
  z-index: 12;
}
.sidebar-game .menu-game {
    
  background-color: #0f172a;          /* dark navy */
  border: 1px solid #2dd4bf;          /* teal border */
  border-radius: 0.75rem;             /* radius 12px */
  color: #ffffff;                     /* teks putih */
  box-shadow: none;                   /* no bootstrap shadow */
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
  font-size: 1.07em;
  margin-bottom: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  padding: 12px 19px 12px 16px;
  background-color: #0f172a;          /* dark navy */
  cursor: pointer;
  outline: none;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}
.sidebar-game .menu-game.active,
.sidebar-game .menu-game:hover {
  background-color: #0f172a;          /* dark navy */
  color: #ffffff;                     /* teks putih */
  outline: none;
  border-color: #ffd700;              /* gold on focus */
  box-shadow: 0 0 8px rgba(255,215,0,0.6);
}
.sidebar-game .menu-game .dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: #ffd700;
  display: inline-block;
  margin-right: 9px;
  box-shadow: 0 0 7px #ffd70099;
  opacity: 0.8;
}
@media (max-width: 991px) {
  .main-flex-row { flex-direction: column;}
  .sidebar-game {
    flex-direction: row;
    min-width: unset; max-width: 100vw;
    width: 100vw;
    border-radius: 1.2em;
    position: static;
    padding: 13px 2vw 12px 2vw;
    margin-bottom: 22px;
    overflow-x: auto;
    gap: 4px;
  }
  .sidebar-game .menu-game {
    min-width: 181px;
    font-size: 0.98em;
    padding: 10px 10px;
    border-radius: 1em;
    margin-bottom: 0;
  }
}

/* --- ITEM CARD --- */
.item-card {
  background: rgba(28,38,66,0.5);
  border-radius: 12px;
  box-shadow: 0 1px 10px #2225;
  padding: 10px 18px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.item-img {width:50px;height:50px;border-radius:10px;object-fit:cover;}
.item-info {flex:1;margin-left:15px;}
.item-name {font-size:1.11em;font-weight:700;}
.item-desc {font-size:0.98em;color:#aef;}
.item-meta {font-size:0.93em;color:#aaa;}
.buy-btn {
  background: #29c8ff;
  color: #181c25;
  font-weight: 600;
  padding: 7px 22px;
  border: none;
  border-radius: 8px;
  transition: background 0.17s, color 0.15s;
}
.buy-btn:hover {background: #188fc3; color: #fff;}

/* --- INPUT, SELECT, AUTOCOMPLETE --- */
.input-group,
.form-group,
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 16px;
}
input[type="text"], input[type="number"], select, .custom-select {
  background: #222a3d;
  color: #fff;
  border: 2px solid #222;
  border-radius: 13px;
  padding: 12px 14px;
  font-size: 1rem;
  box-shadow: 0 2px 14px 0 #000c inset;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
  font-family: 'Segoe UI', 'Arial', sans-serif;
  width: 100%;
}
input[type="text"]:focus,
input[type="number"]:focus,
select:focus, .custom-select:focus {
  border-color: #FFD700;
  box-shadow: 0 0 0 2px #FFD70080, 0 2px 18px #2c1e0040 inset;
  color: #ffd700;
  background: #181d28;
  animation: gold-glow 0.4s;
}
@keyframes gold-glow {
  0% { box-shadow: 0 0 0 0 #FFD70000; border-color: #444;}
  100% { box-shadow: 0 0 0 2px #FFD70080; border-color: #FFD700;}
}
select,
.custom-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(135deg,#FFD70066 10%,#00ffe7cc 100%);
  background-size: 100% 3px;
  background-repeat: no-repeat;
  background-position: bottom left;
}
select option,
.custom-select option {
  color: #fff;
  background: #12182b;
  font-size: 1rem;
  border-radius: 6px;
}
input::placeholder {
  color: #fff;
  font-weight: 400;
  letter-spacing: 0.5px;
  opacity: 0.8;
}
input[type="text"]:hover, input[type="number"]:hover,
select:hover, .custom-select:hover {
  border-color: #FFD70099;
}
.input-error {
  border-color: #ff9c00 !important;
  box-shadow: 0 0 0 0.2rem rgba(255,156,0,.25);
}

/* --- AUTOCOMPLETE --- */
.autocomplete-list {
  position: absolute;
  z-index: 2;
  top: 110%;
  left: 0;
  right: 0;
  background: #222;
  border-radius: 0 0 8px 8px;
  border: 1px solid #29c8ff40;
  box-shadow: 0 2px 8px #0008;
}
.autocomplete-list div {
  padding: 7px 14px;
  cursor: pointer;
}
.autocomplete-list div:hover {
  background: #29c8ff22;
}

/* --- MODAL & MODAL SUCCESS --- */
/* (Sesuai struktur HTML/JS-mu di atas, tidak diubah, sudah bagus) */
.order-modal-bg {
  position: fixed; left: 0; top: 0; width: 100vw; height: 100vh; z-index: 9999;
  background: rgba(0,0,0,0.92); backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
}
.order-modal-flex {
  display: flex; min-width: 660px; max-width: 98vw; border-radius: 18px; overflow: hidden;
  box-shadow: 0 12px 44px #000a;
}
.order-modal-left {
  background: #101013; color: #fff; min-width: 350px; max-width: 540px; width: 36vw;
  padding: 38px 32px 22px 32px; display: flex; flex-direction: column; justify-content: center;
}
.order-modal-title {
  font-size: 2.2em; color: #27c8ff; font-weight: 900; text-align: left; margin-bottom: 7px;
  text-shadow: 0 0 12px #22e9ff80,0 2px 30px #0ff4;
}
.order-modal-subtitle {font-size: 1.12em; margin-bottom: 18px;}
.order-modal-summary {width: 100%; border-collapse: collapse; margin-bottom: 18px;}
.order-modal-summary td {padding: 3px 6px; font-size: 1.08em; border-bottom: 2.5px solid #25293b; white-space: nowrap; text-overflow: ellipsis; overflow: hidden;}
.order-modal-summary td:nth-child(1) {width: 148px; color: #ddd; font-weight: 500; border-bottom: 2.5px solid #393c48;}
.order-modal-summary td:nth-child(2) {width: 14px; color: #8ef; font-weight: 700; border-bottom: 2.5px solid #393c48;}
.order-modal-summary td:nth-child(3) {color: #fff; font-weight: 600; border-bottom: 2.5px solid #393c48;}
.order-modal-summary tr:last-child td {border-bottom: none;}
.order-modal-summary select.form-select,
.order-modal-summary input.form-control {
  background: #191a23; color: #fff; border-radius: 8px; border: 1.3px solid #27c8ff; font-size: 1.03em; outline: none; box-shadow: none;
  min-width: 100px; max-width: 95%; display: inline-block; height: 38px;
}
.total-highlight {
  font-size: 1.16em; display: flex; align-items: center; gap: 12px; border-bottom: none !important;
  padding-bottom: 2px; margin-bottom: 0; padding-top: 3px;
}
.order-modal-right {
  background: linear-gradient(135deg, #4facfe 0%, #003087 100%);
  min-width: 320px; max-width: 360px; padding: 38px 28px ;
  display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start;
  color: #fff; box-shadow: -4px 0 24px #0008 inset;
}
/* Kotak Total + VAT untuk PayPal */
.paypal-total-box {
  border: none; /* Biru */
  border-radius: 8px;
  padding: 5px;
  margin-bottom: 7px;
  background: rgba(2, 10, 66,0.50); /* efek transparan */
  width: 100%;
  box-sizing: border-box;
}

/* Kotak Total untuk Balance */
.balance-total-box {
  border: 1px solid #808080; /* Hijau */
  border-radius: 8px;
  padding: 5px;
  margin-bottom: 7px;
  background: rgba(255,255,255,0.05);
  width: 100%;
  box-sizing: border-box;
}

/* Teks total */
.total-label {
  font-weight: bold;
  font-size: 1.14em;
  color: #ffd700;
}
.total-value {
  font-weight: bold;
  font-size: 1.14em;
  color: #ffd700;
  float: right;
}



.pay-totals { width: 100%; }
.pay-totals-row { display:flex; align-items:center; }
.pay-totals-row .label { text-align:left; }
.pay-totals-row .value { margin-left:15px; }

.order-modal-paytitle {font-size: 1.16em; font-weight: bold; color: #ffd700; text-shadow: 0 2px 12px #fff6; margin-bottom: 10px;}
#paypal-button-modal {width: 100%; min-width: 0; max-width: 100%; margin-bottom: 14px; box-sizing: border-box; display: block;}
#paypal-button-modal iframe,
#paypal-button-modal > div,
#paypal-button-modal > * {width: 100% !important; min-width: 0 !important; max-width: 100% !important; min-height: 52px !important; box-sizing: border-box !important;}
#btn-balance, .balance-btn, .cancel-btn, #btn-cancel-modal {
  width: 100%; min-width: 0; max-width: 100%; min-height: 52px;
  border-radius: 13px; font-size: 1.13rem; font-weight: bold; display: block; margin-bottom: 14px; box-sizing: border-box; transition: background 0.22s;
}
#btn-balance, .balance-btn {background: #FFA900; color: #222; border: none;}
#btn-balance:hover, .balance-btn:hover {background: #FFBE36; color: #181818;}
.cancel-btn, #btn-cancel-modal {background: #383838 !important; color: #fff !important; border: none; margin-bottom: 0;}
@media (max-width:1000px){
  .order-modal-flex{flex-direction:column;}
  .order-modal-left,.order-modal-right{min-width:0;max-width:100%;width:98vw;}
}

/* --- MODAL SUKSES --- */
/* ===== Success Modal (modernized, same colors & layout) ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.6);              /* tetap */
  display: none;                             /* default hidden */
  align-items: center; justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(6px);                /* tambah blur lembut */
  -webkit-backdrop-filter: blur(6px);
}
.modal-overlay.active { display: flex; }

/* container utama modal */
.modal-container {
  position: relative;
  display: inline-block;
  width: auto;
  max-width: min(720px, 92vw);               /* responsif */
  background: #010c24;                       /* tetap */
  border: 1px solid #4DA6FF;                 /* tetap */
  border-radius: 14px;                       /* lebih modern */
  padding: 26px 22px;                        /* sedikit lega */
  text-align: center;                         /* tetap */
  box-shadow:
    0 12px 28px rgba(0,0,0,0.45),            /* shadow lembut */
    0 0 0 1px rgba(77,166,255,0.25) inset;   /* inner line biru */
  transform: translateY(6px) scale(.985);    /* anim masuk */
  opacity: 0;
  transition:
    transform .28s cubic-bezier(.2,.7,.2,1),
    opacity .28s cubic-bezier(.2,.7,.2,1),
    box-shadow .28s ease;
  will-change: transform, opacity;
}
.modal-overlay.active .modal-container {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* header & subtitle */
.modal-container .modal-header {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);   /* responsif, tetap emas */
  color: #FFD700;
  font-weight: 700;                           /* sedikit lebih tebal */
  letter-spacing: .2px;
  justify-content: center;
}
.modal-container .modal-subtitle {
  margin: 0 0 18px;
  font-size: .98rem;                          /* hampir sama */
  color: #E0E0E0;
  line-height: 1.45;
}

/* detail box */
.modal-container .modal-details {
  background: #19354B;                        /* tetap */
  border: 1px solid #4DA6FF;                  /* tetap */
  border-radius: 10px;                        /* sedikit lebih bulat */
  padding: 16px 18px;
  margin-bottom: 22px;
  box-shadow: 0 6px 14px rgba(0,0,0,.28) inset;
}

/* baris detail sebagai flex */
.modal-container .modal-details p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
}

/* label (kiri) */
.modal-container .modal-details p strong {
  display: inline-block;
  width: 140px;                               /* sedikit lebih lebar */
  margin-right: 0;
  font-weight: 600;                           /* sedikit lebih tebal */
  color: #B0DFFF;                             /* tetap */
  text-align: left;
}

/* nilai (kanan) */
.modal-container .modal-details p span {
  white-space: nowrap;                        /* tetap */
  color: #FFFFFF;                             /* tetap */
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* tombol action (RETURN TO PROFILE) */
.modal-container .modal-button {
  display: inline-block;
  background: #4DA6FF;                        /* tetap */
  color: #FFFFFF;                             /* tetap */
  border: none;
  border-radius: 10px;                        /* modern */
  padding: 12px 26px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(77,166,255,.25);
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}
.modal-container .modal-button:hover {
  opacity: .95;                               /* tetap mirip */
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(77,166,255,.32);
}
.modal-container .modal-button:active {
  transform: translateY(0);
}

/* fokus aksesibilitas */
.modal-container .modal-button:focus-visible {
  outline: 2px solid #FFD700;                 /* selaras tema emas */
  outline-offset: 2px;
  box-shadow: 0 0 0 2px rgba(255,215,0,.35);
}

/* responsif kecil */
@media (max-width: 480px) {
  .modal-container { padding: 22px 16px; }
  .modal-container .modal-details { padding: 14px 14px; }
  .modal-container .modal-details p strong { width: 110px; }
}

/* hormati preferensi reduce-motion */
@media (prefers-reduced-motion: reduce) {
  .modal-container,
  .modal-overlay.active .modal-container {
    transition: none;
    transform: none;
    opacity: 1;
  }
}

/* rata titik dua seperti order-modal-summary */
.modal-details-table{
  width:100%;
  border-collapse:collapse;
}
.modal-details-table td{
  padding:6px 8px;
  font-size:1rem;
  border-bottom:1.5px solid rgba(255,255,255,0.08);
  white-space:nowrap;
  text-overflow:ellipsis;
  overflow:hidden;
}
.modal-details-table tr:last-child td{
  border-bottom:none;
}
.modal-details-table .md-label{
  width:140px;             /* kolom label */
  color:#B0DFFF;           /* konsisten dengan modal sebelumnya */
  font-weight:600;
  text-align:left;
}
.modal-details-table .md-colon{
  width:14px;              /* kolom ':' */
  text-align:center;
  color:#B0DFFF;
  font-weight:700;
}
.modal-details-table .md-value{
  color:#FFFFFF;           /* nilai tetap putih */
  text-align:left;
}

