/* =========================================================
   HSOCOLD SHOP - SAFE CSS (No Grid / No gap)
   PHP 7.4 Production UI - Clean structure
========================================================= */

/* ===== Reset ===== */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #070914;
  color: #ffffff;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font-family: inherit; }

/* ===== Utilities ===== */
.hide { display: none !important; }
.center { text-align: center; }
.muted { color: rgba(255,255,255,.72); }
.bold { font-weight: 900; }
.small { font-size: 12px; }
.right { float: right; }
.left { float: left; }
.clear:after { content: ""; display: block; clear: both; }

/* ===== App wrapper ===== */
.app { min-height: 100vh; }

/* =========================================================
   Header
========================================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 14px 16px;
  background: #070914;                 /* fallback */
  background: rgba(7,9,20,.90);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header:after { content: ""; display: block; clear: both; }

.logo {
  float: left;
  font-weight: 900;
  letter-spacing: 1px;
  cursor: pointer;
  color: #ffd54a;
}

#user-menu { float: right; }
#user-menu .btn { margin-left: 8px; }

/* user pill/avatar (app.js) */
.user-pill {
  display: inline-block;
  padding: 10px 12px;
  border-radius: 999px;
  background: #111111;                 /* fallback */
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.90);
  font-weight: 900;
  margin-right: 8px;
}
.user-avatar {
  display: inline-block;
  width: 38px;
  height: 38px;
  line-height: 38px;
  text-align: center;
  border-radius: 999px;
  background: #111111;                 /* fallback */
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  font-weight: 900;
  color: #ffd54a;
  margin-right: 8px;
}

/* =========================================================
   Buttons
========================================================= */
.btn {
  border: 0;
  cursor: pointer;
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 900;
  user-select: none;
  transition: opacity .12s ease, transform .12s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  color: #111;
  background: #ffb84a;
}
.btn-primary:hover { opacity: .95; }

.btn-ghost {
  color: #ffd54a;
  background: #111111;                 /* fallback */
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,213,74,.25);
}
.btn-ghost:hover {
  background: #111111;                 /* fallback */
  background: rgba(255,255,255,.08);
}

.btn-icon {
  border: 1px solid rgba(255,255,255,.10);
  background: #111111;                 /* fallback */
  background: rgba(255,255,255,.04);
  color: #fff;
  padding: 10px 10px;
  border-radius: 14px;
  font-weight: 900;
  cursor: pointer;
}
.btn-icon:hover {
  background: #111111;                 /* fallback */
  background: rgba(255,255,255,.06);
}

.btn-small {
  border: 1px solid rgba(255,255,255,.12);
  background: #111111;                 /* fallback */
  background: rgba(255,255,255,.04);
  color: #fff;
  padding: 8px 10px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 900;
}
.btn-small:hover {
  background: #111111;                 /* fallback */
  background: rgba(255,255,255,.06);
}

/* =========================================================
   Tabs
========================================================= */
.tabs {
  padding: 10px 10px;
  overflow: auto;
  white-space: nowrap;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: #070914;                 /* fallback */
  background: rgba(7,9,20,.72);
  -webkit-overflow-scrolling: touch;
}

.tab {
  display: inline-block;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.75);
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 900;
  cursor: pointer;
  margin-right: 6px;
}
.tab:hover {
  color: #fff;
  background: #111111;                 /* fallback */
  background: rgba(255,255,255,.06);
}
.tab.active {
  color: #111;
  background: #ffb84a;
}

.badge {
  display: inline-block;
  min-width: 18px;
  height: 18px;
  line-height: 18px;
  padding: 0 6px;
  margin-left: 6px;
  border-radius: 999px;
  background: #ff1744;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  vertical-align: middle;
}

/* =========================================================
   Main / Sections
========================================================= */
.main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 14px;
}

.page-section { display: none; }
.page-section.active { display: block; }

.section-head { margin-bottom: 14px; }
.section-head:after { content: ""; display: block; clear: both; }
.section-head h2 { margin: 0; font-size: 22px; }

.pill {
  display: inline-block;
  padding: 10px 12px;
  border-radius: 999px;
  background: #111111;                 /* fallback */
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(255,255,255,.85);
}

/* =========================================================
   Cards / Hero
========================================================= */
.card {
  background: #111111;                 /* fallback */
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  padding: 16px;
}

.hero { text-align: center; padding: 10px 0; }
.hero-title {
  font-weight: 900;
  font-size: 28px;
  letter-spacing: 1px;
  margin: 8px 0;
  color: #ffb84a;
}
.hero-sub { color: rgba(255,255,255,.72); font-weight: 700; margin-bottom: 12px; }

.card-hero { max-width: 700px; margin: 12px auto; }
.hero-row:after { content: ""; display: block; clear: both; }
.money {
  float: left;
  font-size: 22px;
  font-weight: 900;
  color: #00e5ff;
}
.hero-actions { margin-top: 14px; }
.hero-actions .btn { margin: 6px 6px 0 0; }

/* =========================================================
   Forms / Inputs
========================================================= */
.label { display: block; margin-bottom: 8px; color: #ffd54a; font-weight: 900; }

.input {
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.25);
  color: #fff;
  outline: none;
}
.input:focus { border-color: rgba(0,229,255,.65); }

.form-group { margin-bottom: 12px; }
.hint { margin-top: 8px; color: rgba(255,255,255,.72); font-weight: 800; }

.row:after { content: ""; display: block; clear: both; }
.row .input { float: left; width: 68%; }
.row .btn { float: right; width: 30%; }

/* auth switch row */
.switch-row { text-align: center; margin-top: 12px; }
.link { color: #ffd54a; font-weight: 900; text-decoration: underline; cursor: pointer; }

/* =========================================================
   Products (body.php uses: #products-grid.grid + .product-card)
   SAFE layout: inline-block columns
========================================================= */
.grid { margin: -6px; } /* container for inline-block cards */

.product-card {
  display: inline-block;
  vertical-align: top;
  width: calc(33.333% - 12px);
  margin: 6px;
  border-radius: 18px;
  padding: 14px;
  background: #111111;                 /* fallback */
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  overflow: hidden;
}
.product-card:hover { border-color: rgba(0,229,255,.25); }

.product-image {
  height: 160px;
  border-radius: 14px;
  text-align: center;
  line-height: 160px;
  background: #111111;                 /* fallback */
  background: rgba(255,255,255,.04);
  font-size: 48px;
}
.product-name { font-weight: 900; margin: 10px 0 6px; }
.product-price { color: #00e5ff; font-weight: 900; margin-bottom: 10px; }
.product-actions { margin-top: 6px; }
.product-actions .btn { margin-right: 8px; margin-bottom: 8px; }

/* =========================================================
   Payment / Topup
========================================================= */
.payment-methods { margin: -6px; }
.payment-method {
  display: inline-block;
  vertical-align: top;
  width: calc(25% - 12px);
  margin: 6px;
  padding: 12px 12px;
  border-radius: 14px;
  background: #111111;                 /* fallback */
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  cursor: pointer;
  font-weight: 900;
  text-align: center;
}
.payment-method.active {
  border-color: rgba(255,213,74,.55);
  background: #1b1406;                 /* fallback */
  background: rgba(255,213,74,.12);
}

.topup-grid { margin: -6px; }
.topup-package {
  display: inline-block;
  vertical-align: top;
  width: calc(33.333% - 12px);
  margin: 6px;
  border-radius: 18px;
  padding: 14px;
  background: #111111;                 /* fallback */
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  cursor: pointer;
  text-align: center;
}
.topup-package:hover { border-color: rgba(0,229,255,.25); }

.package-icon { font-size: 26px; display: block; margin-bottom: 8px; }
.package-amount { font-weight: 900; color: #00e5ff; }
.package-price { color: rgba(255,255,255,.75); font-weight: 800; margin-top: 6px; }
.package-bonus { color: #ffd54a; font-weight: 900; margin-top: 6px; }
.note { margin-top: 12px; color: rgba(255,255,255,.75); font-weight: 800; }

/* =========================================================
   Cart / Wishlist
========================================================= */
.cart-item, .wishlist-item {
  background: #111111;                 /* fallback */
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  padding: 14px;
  margin-bottom: 10px;
}
.cart-item:after, .wishlist-item:after { content: ""; display: block; clear: both; }

.item-info { float: left; width: 70%; }
.item-actions { float: right; width: 30%; text-align: right; }
.item-actions .btn { margin-left: 6px; margin-bottom: 6px; }

.item-icon {
  font-size: 34px;
  margin-bottom: 6px;
}
.item-name { font-weight: 900; margin-bottom: 4px; }

/* =========================================================
   Empty states
   - body.php uses .empty
   - old blocks might use .empty-state -> keep both
========================================================= */
.empty, .empty-state {
  text-align: center;
  padding: 40px 18px;
  background: #0b0d1f;                 /* fallback */
  background: rgba(255,255,255,.03);
  border: 1px dashed rgba(255,255,255,.12);
  border-radius: 18px;
}
.empty-icon {
  font-size: 42px;
  opacity: .7;
  margin-bottom: 8px;
}

/* =========================================================
   Modal (modals.php)
========================================================= */
.modal {
  display: none;
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  z-index: 1000;
  background: rgba(0,0,0,.72);
  padding: 16px;
}
.modal.active { display: block; }

.modal-card {
  width: 100%;
  max-width: 460px;
  margin: 60px auto 0 auto;
  background: #0c0f20;                 /* fallback */
  background: rgba(12,15,32,.96);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 20px 70px rgba(0,0,0,.55);
  position: relative;
}
.modal-wide { max-width: 760px; }

.modal-title {
  text-align: center;
  font-weight: 900;
  letter-spacing: 1px;
  font-size: 20px;
  margin-bottom: 14px;
  color: #ffb84a;
}

.modal-close {
  position: absolute;
  top: 10px; right: 10px;
  width: 36px; height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: #111111;                 /* fallback */
  background: rgba(255,255,255,.05);
  color: #fff;
  cursor: pointer;
}

/* =========================================================
   Transactions (tx modal) - match app.js classes
========================================================= */
.tx-list { margin-top: 10px; }

.tx-item {
  padding: 12px;
  border-radius: 14px;
  background: #111111;                 /* fallback */
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  margin-bottom: 10px;
}
.tx-item:after { content: ""; display: block; clear: both; }

.tx-type { font-weight: 900; }
.tx-date { margin-top: 4px; }

.tx-amt {
  float: right;
  font-weight: 900;
}
.tx-amt.pos { color: #4caf50; }
.tx-amt.neg { color: #ff1744; }

/* =========================================================
   Toast
========================================================= */
.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  display: none;
  padding: 12px 14px;
  border-radius: 16px;
  background: #0c0f20;                 /* fallback */
  background: rgba(12,15,32,.96);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 18px 60px rgba(0,0,0,.55);
  z-index: 2000;
  min-width: 260px;
}
.toast.active { display: block; }

.toast-icon {
  display: inline-block;
  width: 28px;
  height: 28px;
  line-height: 28px;
  text-align: center;
  margin-right: 10px;
}
.toast-message { display: inline-block; font-weight: 900; }

/* =========================================================
   Responsive
========================================================= */
@media (max-width: 980px) {
  .product-card { width: calc(50% - 12px); }
  .topup-package { width: calc(50% - 12px); }
  .payment-method { width: calc(50% - 12px); }
  .item-info { width: 65%; }
  .item-actions { width: 35%; }
}

@media (max-width: 520px) {
  .hero-title { font-size: 22px; }
  .money {
    float: none;
    display: block;
    margin-bottom: 10px;
    font-size: 18px;
  }
  .product-card { width: calc(100% - 12px); }
  .topup-package { width: calc(100% - 12px); }
  .payment-method { width: calc(100% - 12px); }
  .item-info { float: none; width: 100%; }
  .item-actions {
    float: none;
    width: 100%;
    text-align: left;
    margin-top: 10px;
  }
  .row .input { float: none; width: 100%; }
  .row .btn { float: none; width: 100%; margin-top: 10px; }
}