/* ── SylixSMP — Custom CSS ───────────────────────────────────── */

/* Logo */
#site-logo {
  max-width: 240px;
  max-height: 120px;
  object-fit: contain;
}

/* General text */
p { color: #b8b8b8; }

/* desc / support / policy boxes — background handled by theme.css */
.desc, .support {
  border-radius: 14px;
}

.store-name span {
  color: #b8b8b8;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.store-name h1 {
  color: #fff;
  font-size: 2.5rem;
  font-weight: 800;
}

/* Policy grid */
.policy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
@media (max-width: 700px) {
  .policy { grid-template-columns: 1fr; }
}

.refund-policy, .privacy-policy {
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
}
.refund-policy h4, .privacy-policy h4 { color: #fff; }
.refund-policy p, .privacy-policy p { color: #b8b8b8; flex: 1; }

/* Discord button */
.btn-discord {
  background: #7289da;
  color: #fff !important;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  padding: 10px 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: 0.2s;
}
.btn-discord:hover { background: #5f73bc; color: #fff; }

/* drop-shadow */
.drop-shadow { filter: drop-shadow(2px 2px 3px rgba(0,0,0,0.3)); }

/* Generic btn (back button etc) */
.btn {
  background: rgba(255,255,255,0.07);
  color: #fff !important;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  font-weight: 600;
  transition: 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
}
.btn:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

/* Terms/Privacy page body text */
.desc h2 { color: #fff; }
.desc h5 { color: var(--color-main); margin-top: 1.5rem; }
.desc p  { color: #c8c8c8; line-height: 1.7; }
.desc strong { color: #fff; }
.desc a { color: var(--color-main); }

/* Footer */
footer p, footer small { color: #b8b8b8 !important; }

/* Swal confirm button */
.swal2-actions button {
  border-radius: 8px !important;
  font-weight: 600 !important;
  font-size: 16px !important;
  transition: 350ms;
}

/* ── Cart toggle button (top-right in header line-1) ─────────── */
#cart-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 50px;
  padding: 0 18px;
  border-radius: 100px;
  background: rgba(255,255,255,.05);
  color: #b8b8b8;
  border: none;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 15px;
  transition: 0.25s;
  position: relative;
}
#cart-toggle:hover { background: rgba(255,255,255,.1); color: #ddd; }
#cart-toggle i { font-size: 17px; }

#cart-badge {
  display: none;
  position: absolute;
  top: 4px;
  left: 10px;
  background: var(--color-main);
  color: #181820;
  font-size: 10px;
  font-weight: 800;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  line-height: 1;
  pointer-events: none;
}

/* ── Cart Overlay + Sidebar ──────────────────────────────────── */
#cart-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 999;
}
#cart-overlay.open { display: block; }

#cart-sidebar {
  position: fixed;
  top: 0; right: -380px;
  width: 360px; max-width: 95vw;
  height: 100vh;
  background: #1e1e2a;
  border-left: 1px solid rgba(255,255,255,0.08);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(.4,0,.2,1);
  box-shadow: -8px 0 40px rgba(0,0,0,0.5);
}
#cart-sidebar.open { right: 0; }

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.cart-header h3 {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
}
.cart-close-btn {
  background: none; border: none; color: #888;
  font-size: 20px; cursor: pointer; transition: color 0.2s;
  padding: 4px 8px; border-radius: 6px;
}
.cart-close-btn:hover { color: #fff; background: rgba(255,255,255,0.06); }

#cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #555;
  text-align: center;
  padding: 40px 0;
}
.cart-empty p { color: #555; }

.cart-item {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.cart-item-name {
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  margin: 0 0 3px;
}
.cart-item-price {
  color: var(--color-main);
  font-size: 13px;
  font-weight: 700;
  margin: 0;
}
.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.cart-qty-btn {
  background: rgba(255,255,255,0.08);
  border: none; color: #fff;
  width: 26px; height: 26px;
  border-radius: 6px;
  cursor: pointer; font-size: 14px;
  transition: background 0.15s;
  display: flex; align-items: center; justify-content: center;
}
.cart-qty-btn:hover { background: rgba(255,255,255,0.15); }
.cart-qty {
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  min-width: 20px;
  text-align: center;
}
.cart-remove-btn {
  background: none; border: none;
  color: #FF3434; cursor: pointer; font-size: 13px;
  padding: 4px 6px; border-radius: 6px;
  transition: background 0.15s;
}
.cart-remove-btn:hover { background: rgba(255,52,52,0.1); }

#cart-footer {
  padding: 16px;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.cart-total {
  color: #b8b8b8;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
}
.cart-total span {
  color: #fff;
  font-size: 18px;
  font-weight: 800;
}
.btn-checkout {
  background: var(--color-main);
  color: #181820;
  border: none;
  border-radius: 10px;
  font-weight: 800;
  font-size: 15px;
  padding: 13px;
  cursor: pointer;
  transition: 0.2s;
  font-family: 'Montserrat', sans-serif;
}
.btn-checkout:hover { background: #1ac5ff; }
.btn-clear-cart {
  background: rgba(255,52,52,0.12);
  color: #FF3434;
  border: 1px solid rgba(255,52,52,0.25);
  border-radius: 10px;
  font-weight: 600;
  font-size: 13px;
  padding: 9px;
  cursor: pointer;
  transition: 0.2s;
  font-family: 'Montserrat', sans-serif;
  width: 100%;
}
.btn-clear-cart:hover { background: rgba(255,52,52,0.2); }

/* ── Product Cards ───────────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  padding: 4px;
}
/* Equal-height cards via flex column */
.product-card {
  display: flex;
  flex-direction: column;
}
.product-card .product-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-card .product-footer {
  margin-top: auto;
}
@media (max-width: 600px) {
  /* 1 column on mobile so cards are never misaligned side-by-side */
  .products-grid { grid-template-columns: 1fr; gap: 10px; }
}

.product-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
  cursor: pointer;
  position: relative;
}
.product-card:hover {
  border-color: var(--color-main);
  transform: translateY(-2px);
}

.product-badge {
  position: absolute; top: 10px; right: 10px;
  font-size: 10px; font-weight: 800;
  padding: 3px 8px; border-radius: 100px;
  letter-spacing: 0.5px; text-transform: uppercase;
}
.badge-blue  { background: var(--color-main); color: #181820; }
.badge-green { background: var(--color-green); color: #181820; }
.badge-red   { background: var(--color-red); color: #fff; }
.badge-gold  { background: #f5c518; color: #181820; }

.product-img {
  width: 100%; height: 130px;
  object-fit: cover;
  display: block;
  background: #181820;
}
.product-img-placeholder {
  width: 100%; height: 130px;
  display: flex; align-items: center; justify-content: center;
  background: #181820;
  font-size: 40px;
  color: rgba(0,183,255,0.25);
}

.product-body { padding: 14px; }
.product-name {
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  margin: 0 0 4px;
}
.product-desc {
  color: #888;
  font-size: 12px;
  margin: 0 0 10px;
  line-height: 1.5;
}
.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.product-price {
  color: var(--color-main);
  font-weight: 800;
  font-size: 16px;
  min-width: 0;
  overflow-wrap: anywhere;
  flex: 1 1 auto;
}
.product-price.free { color: var(--color-green); }
.btn-add-cart {
  background: var(--color-main);
  color: #181820;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 12px;
  padding: 6px 14px;
  cursor: pointer;
  transition: 0.2s;
  font-family: 'Montserrat', sans-serif;
  flex-shrink: 0;
  white-space: nowrap;
}
.btn-add-cart:hover { background: #1ac5ff; }

@media (max-width: 576px) {
  .product-footer { flex-direction: column; align-items: stretch; gap: 8px; }
  .product-price { font-size: 15px; text-align: left; }
  .btn-add-cart { width: 100%; padding: 8px 10px; }
}

/* Category header */
.category-header {
  color: var(--color-main);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 20px 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0,183,255,0.15);
}

/* ── Product Detail Modal ────────────────────────────────────── */
#product-modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 1100;
  align-items: center;
  justify-content: center;
}
#product-modal-overlay.open {
  display: flex;
}
#product-modal {
  background: #1e1e2a;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  max-width: 480px;
  width: 92%;
  padding: 28px;
  position: relative;
  max-height: 88vh;
  overflow-y: auto;
}
#product-modal h2 {
  color: #fff;
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0 0 6px;
}
#product-modal .modal-price {
  color: var(--color-main);
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 0 14px;
}
#product-modal .modal-desc {
  color: #b8b8b8;
  font-size: 14px;
  margin-bottom: 14px;
  line-height: 1.6;
}
#product-modal .modal-features {
  list-style: none;
  padding: 0; margin: 0 0 20px;
}
#product-modal .modal-features li {
  color: #c8c8c8;
  font-size: 13px;
  padding: 5px 0;
  display: flex; align-items: center; gap: 8px;
}
#product-modal .modal-features li::before {
  content: "✓";
  color: var(--color-green);
  font-weight: 800;
}
.modal-close-btn {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none;
  color: #666; font-size: 20px; cursor: pointer;
  padding: 4px 8px; border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.modal-close-btn:hover { color: #fff; background: rgba(255,255,255,0.07); }
.btn-modal-buy {
  background: var(--color-main);
  color: #181820;
  border: none; border-radius: 10px;
  font-weight: 800; font-size: 15px;
  padding: 13px 24px;
  cursor: pointer; transition: 0.2s;
  font-family: 'Montserrat', sans-serif;
  width: 100%;
}
.btn-modal-buy:hover { background: #1ac5ff; }

/* Cat info box */
.cat-info {
  background: rgba(255,255,255,0.04);
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.07);
}
.cat-info h4 { color: #fff; }

/* ── Gift Card Balance ───────────────────────────────────────── */
.module-gift {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
}
.module-gift h4 {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
}
.module-gift h4 i { color: var(--color-main); }

.gift-input-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.gift-input {
  width: 100%;
  background: #181820;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  padding: 10px 14px;
  letter-spacing: 1px;
  outline: none;
  transition: border-color 0.2s;
}
.gift-input:focus { border-color: var(--color-main); }
.gift-input::placeholder { color: #555; font-weight: 400; letter-spacing: 0; }

.btn-gift-check {
  width: 100%;
  background: var(--color-main);
  color: #181820;
  border: none;
  border-radius: 8px;
  font-weight: 800;
  font-size: 13px;
  padding: 10px;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.btn-gift-check:hover { background: #1ac5ff; }
.btn-gift-check:disabled { opacity: 0.5; cursor: not-allowed; }

.gift-result {
  display: none;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  margin-top: 4px;
}
.gift-result.success {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,200,100,0.1);
  border: 1px solid rgba(0,200,100,0.25);
  color: #00c864;
}
.gift-result.error {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,52,52,0.1);
  border: 1px solid rgba(255,52,52,0.2);
  color: #ff6b6b;
}
.gift-result.void {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,180,0,0.1);
  border: 1px solid rgba(255,180,0,0.25);
  color: #ffb400;
}
.gift-balance-amount {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
}

/* ── Gift Card Balance Widget ────────────────────────────────── */
.giftcard-widget {
  background-color: var(--color-main-bg);
  border-radius: 8px;
  padding: 20px 20px 16px;
  margin-bottom: 8px;
}
.giftcard-widget h4 {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 14px;
}
.giftcard-widget h4 i { color: var(--color-main); }

.giftcard-input-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.giftcard-input {
  flex: 1;
  background: #181820;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.2s;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.giftcard-input::placeholder { color: #555; text-transform: none; letter-spacing: 0; }
.giftcard-input:focus { border-color: var(--color-main); }

.giftcard-check-btn {
  background: var(--color-main);
  color: #181820;
  border: none;
  border-radius: 10px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 13px;
  padding: 10px 18px;
  cursor: pointer;
  transition: 0.2s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}
.giftcard-check-btn:hover { background: #1ac5ff; }
.giftcard-check-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.giftcard-check-btn .spinner {
  width: 14px; height: 14px;
  border: 2px solid rgba(0,0,0,0.3);
  border-top-color: #181820;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}
.giftcard-check-btn.loading .spinner { display: block; }
.giftcard-check-btn.loading .btn-label { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.giftcard-hint {
  color: #555;
  font-size: 11px;
  margin: 6px 0 0;
}

.giftcard-result {
  margin-top: 12px;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  display: none;
  align-items: center;
  gap: 10px;
  animation: fadeInUp 0.3s ease;
}
.giftcard-result.show { display: flex; }
.giftcard-result.success {
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.25);
  color: #4ade80;
}
.giftcard-result.error {
  background: rgba(255,52,52,0.1);
  border: 1px solid rgba(255,52,52,0.2);
  color: #ff7070;
}
.giftcard-result.warning {
  background: rgba(234,179,8,0.1);
  border: 1px solid rgba(234,179,8,0.2);
  color: #facc15;
}
.giftcard-result i { font-size: 18px; flex-shrink: 0; }
.giftcard-result .result-text strong { color: #fff; display: block; font-size: 15px; }
.giftcard-result .result-text span { font-size: 12px; opacity: 0.8; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Cart Gift Card Row ───────────────────────────────────────── */
.cart-giftcard-row {
  margin-bottom: 10px;
}
.cart-gc-input-row {
  display: flex;
  gap: 6px;
  align-items: center;
}
.cart-gc-apply-btn {
  background: rgba(0,183,255,0.15);
  color: #00B7FF;
  border: 1px solid rgba(0,183,255,0.3);
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 12px;
  padding: 7px 12px;
  cursor: pointer;
  transition: 0.2s;
  white-space: nowrap;
}
.cart-gc-apply-btn:hover { background: rgba(0,183,255,0.25); }
.cart-gc-applied {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,183,255,0.08);
  border: 1px solid rgba(0,183,255,0.2);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  color: #b8b8b8;
}
.cart-gc-applied code {
  color: #00B7FF;
  font-size: 11px;
}
.cart-gc-remove-btn {
  background: none;
  border: none;
  color: #ff6b6b;
  cursor: pointer;
  margin-left: auto;
  font-size: 13px;
  padding: 2px 4px;
  border-radius: 4px;
  transition: background 0.15s;
}
.cart-gc-remove-btn:hover { background: rgba(255,52,52,0.1); }
.cart-discount-row, .cart-gift-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #888;
  margin-bottom: 4px;
}

/* Mobile fix */
@media (max-width: 768px) {
  .line-1 { flex-wrap: wrap; gap: 8px; }
}

/* ── Swal popup centering fix ────────────────────────────────── */
.sylix-login-popup {
  border-radius: 16px !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  margin: auto !important;
}
.swal2-container {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.swal2-container.swal2-center {
  align-items: center !important;
}
/* Ensure input in Swal is clean */
.swal2-input {
  background: #181820 !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  color: #fff !important;
  border-radius: 8px !important;
  font-size: 15px !important;
  margin: 4px 0 0 !important;
}
.swal2-validation-message {
  background: rgba(255,52,52,0.1) !important;
  color: #ff6b6b !important;
  border-radius: 6px !important;
}

/* ── Currency Picker ─────────────────────────────────────────── */
#currency-picker {
  position: relative;
  display: inline-flex;
  align-items: center;
}

#currency-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 50px;
  padding: 0 14px;
  border-radius: 100px;
  background: rgba(255,255,255,.05);
  color: #b8b8b8;
  border: none;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 13px;
  transition: 0.25s;
  letter-spacing: 0.5px;
}
#currency-btn:hover { background: rgba(255,255,255,.1); color: #fff; }
#currency-btn i { font-size: 11px; transition: transform 0.2s; }
#currency-btn.open i { transform: rotate(180deg); }

#currency-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #1e1e2a;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  min-width: 110px;
  z-index: 2000;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
  overflow: hidden;
  max-height: 280px;
  overflow-y: auto;
}
#currency-dropdown.open { display: block; }

.currency-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  color: #b8b8b8;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  font-family: 'Montserrat', sans-serif;
}
.currency-option:hover { background: rgba(255,255,255,0.06); color: #fff; }
.currency-option.active { color: var(--color-main); background: rgba(0,183,255,0.07); }
.currency-option .flag { font-size: 16px; }

/* Currency symbol shown on price tags */
.product-price[data-original-price]::before {
  content: attr(data-symbol);
}

/* ── Fading background (Minecraft splash) ─────────────────────── */
.header-splash {
  height: 420px;
  background-size: cover;
  background-position: center;
}
.header-splash .header-splash-overlay {
  background: linear-gradient(to bottom,
    rgba(24,24,32,0.35) 0%,
    rgba(24,24,32,0.65) 55%,
    var(--color-dark-bg) 100%);
}

/* ── Mobile header fix: keep cart left, currency+login right, same row ─ */
@media (max-width: 600px) {
  header .line-1 {
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 6px !important;
    padding-top: 14px !important;
  }
  /* right group: currency + login — shrink to fit */
  header .line-1 > .d-flex {
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 5px !important;
    flex-shrink: 1;
    min-width: 0;
  }
  #cart-toggle {
    flex-shrink: 0;
    height: 42px;
    padding: 0 12px;
    font-size: 13px;
  }
  #currency-btn {
    height: 42px;
    padding: 0 9px;
    font-size: 12px;
    letter-spacing: 0;
    flex-shrink: 0;
  }
  /* dropdown opens left on mobile so it doesn't clip off screen */
  #currency-dropdown { right: auto; left: 0; }
  /* login button: shrink text slightly so it stays on one row */
  header .login-btn {
    height: 42px;
    padding: 0 10px;
    flex-shrink: 1;
    min-width: 0;
  }
  header .login-btn .big { font-size: 12px; line-height: 1.2; white-space: nowrap; }
  header .login-btn .sml { font-size: 10px; line-height: 1.2; white-space: nowrap; }
  header .login-btn img { width: 26px; height: 26px; flex-shrink: 0; }
}

/* ── Top Donator module (matches Aesthe) ─────────────────────── */
.module-topdonator {
  overflow: hidden;
  height: 150px;
}
.module-topdonator .td-skin img {
  height: 200px;
  margin-top: -1rem;
  margin-right: 1rem;
  transition: transform 350ms;
}
.module-topdonator .td-skin img:hover { transform: translateY(-10px); }
.module-topdonator h4 {
  color: var(--color-main);
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-size: 14px;
  margin: 0;
}
.module-topdonator p { color: var(--color-gray); font-size: 14px; margin: 0; }
.module-topdonator b { color: #fff; }

/* ── Recent Payments module (matches Aesthe) ─────────────────── */
.module-payments h4 {
  color: var(--color-main);
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-size: 14px;
  margin: 0;
}
.module-payments .recent-payments {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(32px, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.module-payments .recent-payments li { list-style: none; }
.module-payments .recent-payments img { border-radius: 4px; display: block; }
.module-payments .holder {
  border-radius: 4px;
  background: var(--color-gray);
  opacity: 0.1;
  width: 32px;
  height: 32px;
}

/* ── Mobile alignment fixes (PC-like row for +Add & currency) ── */
@media (max-width: 576px) {
  .product-footer {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
  }
  .product-price {
    font-size: 14px !important;
    text-align: left !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }
  .btn-add-cart {
    width: auto !important;
    flex-shrink: 0 !important;
    padding: 7px 12px !important;
  }
  header .line-1 {
    flex-wrap: wrap;
    justify-content: space-between !important;
    gap: 8px !important;
  }
  header .line-1 > .d-flex {
    flex-wrap: nowrap !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 6px !important;
  }
  #currency-btn { height: 46px; padding: 0 12px; font-size: 12px; }
  #currency-picker { align-self: center; }
  .header-top-btn.login-btn { align-self: center; }
  #cart-toggle { align-self: center; height: 46px; }
}

/* ═══════════════════════════════════════════════════════════════
   SYLIX GATEWAY POPUP — polished GCash flow
   ═══════════════════════════════════════════════════════════════ */
.sylix-gateway-popup {
  border-radius: 20px !important;
  border: 1px solid rgba(0,183,255,0.18) !important;
  padding: 26px 24px 20px !important;
  background: #14141d !important;
  max-width: 460px !important;
  width: 94% !important;
}

.sg-title { display: flex; flex-direction: column; gap: 14px; margin-bottom: 6px; }
.sg-brand {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.sg-brand-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: #00B7FF;
  color: #0b0b12; font-size: 20px;
}
.sg-brand-text { text-align: left; line-height: 1.1; }
.sg-brand-name {
  color: #fff; font-weight: 900; font-size: 1.35rem;
  letter-spacing: 2.5px;
  color: #ffffff;
}
.sg-brand-tag {
  color: #7ac8ff; font-size: 10.5px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; margin-top: 3px;
}

.sg-step-title {
  color: #fff; font-size: 1.05rem; font-weight: 800; text-align: left;
  display: flex; align-items: center; gap: 8px;
}
.sg-step-num {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 26px; height: 26px; padding: 0 8px;
  border-radius: 8px;
  background: rgba(0,183,255,0.15);
  color: #00B7FF; font-weight: 900; font-size: 14px;
}
.sg-step-num.sg-check {
  background: rgba(35,209,96,0.16); color: #23d160;
}

.sg-body { text-align: left; }
.sg-label {
  display: block; color: #b8b8b8;
  font-size: 12px; font-weight: 700; letter-spacing: 0.3px;
  margin: 8px 0 6px;
}
.sg-input {
  width: 100%; box-sizing: border-box;
  background: #101018;
  border: 1px solid rgba(255,255,255,0.08);
  color: #fff; font-size: 15px; padding: 11px 14px;
  border-radius: 10px; outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
  font-family: inherit;
}
.sg-input:focus {
  border-color: #00B7FF;
}
.sg-mono-input { font-family: monospace; letter-spacing: 1px; }
.sg-hint { color: #666; font-size: 11.5px; margin: 8px 0 0; }

.sg-pay-card {
  background: #101018;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 12px;
}
.sg-pay-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 0;
}
.sg-pay-amount {
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 4px; padding-top: 10px;
}
.sg-pay-label { color: #888; font-size: 13px; }
.sg-pay-value { color: #fff; font-weight: 700; font-size: 14px; }
.sg-pay-value-wrap { display: flex; align-items: center; gap: 8px; }
.sg-mono {
  color: #fff; font-weight: 700; font-family: monospace;
  font-size: 14px; letter-spacing: 0.5px;
}
.sg-amount {
  color: #00B7FF; font-weight: 900; font-size: 19px;
}
.sg-copy {
  background: rgba(0,183,255,0.14); border: none;
  color: #00B7FF; font-size: 10.5px; font-weight: 800;
  padding: 4px 9px; border-radius: 6px; cursor: pointer;
  letter-spacing: 0.5px; text-transform: uppercase;
  transition: background 0.15s;
}
.sg-copy:hover { background: rgba(0,183,255,0.24); }
.sg-copy:active { transform: scale(0.96); }

.sg-warn {
  background: rgba(255,160,0,0.08);
  border: 1px solid rgba(255,160,0,0.22);
  border-radius: 10px;
  padding: 10px 14px;
  color: #f5a524; font-size: 12px; font-weight: 600;
  line-height: 1.45; margin-bottom: 12px;
  display: flex; gap: 8px; align-items: flex-start;
}
.sg-warn i { padding-top: 1px; }
.sg-warn strong { color: #ffd88a; }

.sg-status {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 12px;
  color: #b8b8b8; font-size: 13px; font-weight: 600;
  transition: all 0.3s;
}
.sg-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #f5a524;
  box-shadow: 0 0 12px rgba(245,165,36,0.7);
  animation: sg-pulse 1.4s ease-in-out infinite;
}
.sg-status.verified {
  background: rgba(35,209,96,0.09);
  border-color: rgba(35,209,96,0.28);
  color: #7cf0a2;
}
.sg-status.verified .sg-dot {
  background: #23d160; box-shadow: 0 0 12px rgba(35,209,96,0.7);
  animation: none;
}
@keyframes sg-pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%     { opacity: 0.4; transform: scale(0.85); }
}

.sg-actions { display: flex; gap: 10px; }
.sg-btn-sent {
  flex: 1; padding: 12px 16px;
  border-radius: 10px; border: none;
  background: #21212e; color: #666;
  font-weight: 800; font-size: 14px;
  cursor: not-allowed;
  transition: all 0.35s ease;
  font-family: 'Montserrat', sans-serif;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.sg-btn-sent.verified {
  background: #23d160;
  color: #fff; cursor: pointer;
}
.sg-btn-sent.verified:hover { transform: translateY(-1px); }
.sg-btn-back {
  padding: 12px 18px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  background: transparent; color: #888;
  font-weight: 600; font-size: 14px; cursor: pointer;
  transition: all 0.15s;
}
.sg-btn-back:hover { color: #fff; border-color: rgba(255,255,255,0.22); }

.sg-success-body { text-align: center; padding: 4px 0 6px; }
.sg-success-badge {
  display: inline-flex; align-items: center; gap: 14px;
  background: rgba(35,209,96,0.12);
  border: 1px solid rgba(35,209,96,0.3);
  border-radius: 14px;
  padding: 14px 20px;
  margin: 6px 0 14px;
}
.sg-success-badge i {
  color: #23d160; font-size: 34px;
}
.sg-success-amount {
  color: #fff; font-weight: 900; font-size: 18px; text-align: left;
}
.sg-success-sub { color: #a0f5c0; font-size: 12px; text-align: left; margin-top: 2px; }
.sg-success-note {
  color: #cfcfcf; font-size: 13.5px; line-height: 1.6;
  margin: 4px 0 10px;
}
.sg-success-note strong { color: #fff; }

@media (max-width: 480px) {
  .sylix-gateway-popup { padding: 20px 16px 16px !important; }
  .sg-brand-name { font-size: 1.15rem; letter-spacing: 2px; }
  .sg-amount { font-size: 17px; }
  .sg-actions { flex-direction: column-reverse; }
  .sg-btn-back { width: 100%; }
}

/* ═══════════════════════════════════════════════════════════════
   SYLIX GATEWAY v2 — GrabPay Transfer popup
   (matches reference: AMOUNT DUE / stepper / send flow)
   ═══════════════════════════════════════════════════════════════ */
.sgg-popup {
  border-radius: 18px !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: #0e1522 !important;
  border: 1px solid rgba(255,255,255,0.06) !important;
  box-shadow: 0 30px 80px rgba(0,0,0,0.65) !important;
  color: #fff !important;
}
.sgg-popup .swal2-html-container {
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.sgg-close {
  position: absolute; top: 14px; right: 14px;
  width: 30px; height: 30px; border-radius: 8px;
  background: transparent; border: none; color: #b8c2d4;
  font-size: 16px; cursor: pointer; transition: background .15s, color .15s;
  z-index: 5;
}
.sgg-close:hover { background: rgba(255,255,255,0.06); color: #fff; }

.sgg-amount-label {
  text-align: center; color: #b8c2d4;
  font-size: 11px; font-weight: 700; letter-spacing: 2.5px;
  padding: 22px 16px 4px;
}
.sgg-amount {
  text-align: center; color: #fff;
  font-size: 30px; font-weight: 800; letter-spacing: 1px;
  padding: 0 16px 18px;
}

.sgg-tabs {
  display: flex; justify-content: center;
  gap: 8px; margin: 0 22px 20px;
  background: #0a1220; border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px; padding: 5px;
}
.sgg-tab {
  border: none; background: transparent;
  color: #7c8598; font-weight: 700; font-size: 13px;
  padding: 9px 24px; border-radius: 9px; cursor: pointer;
  min-width: 200px; text-align: center;
  transition: all .15s;
}
.sgg-tab.active {
  background: #0f1a2b;
  color: #00B7FF;
}
.sgg-tab[disabled] { cursor: not-allowed; opacity: .55; }

.sgg-stepper {
  display: flex; align-items: center; justify-content: center;
  gap: 4px; padding: 0 24px 18px;
}
.sgg-step { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 46px; }
.sgg-step-dot {
  width: 28px; height: 28px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: #6b7488;
  border: 1.5px solid #3a4257;
  font-weight: 800; font-size: 12px;
  transition: all .2s;
}
.sgg-step-label { color: #6b7488; font-size: 11px; font-weight: 600; letter-spacing: .3px; }
.sgg-step.active .sgg-step-dot {
  background: #00B7FF; color: #06131f; border-color: #00B7FF;
}
.sgg-step.active .sgg-step-label { color: #fff; }
.sgg-step.done  .sgg-step-dot   { background: rgba(0,183,255,0.15); color: #00B7FF; border-color: rgba(0,183,255,0.6); }
.sgg-step.done  .sgg-step-label { color: #b8c2d4; }
.sgg-step-line {
  flex: 0 1 40px; height: 2px; background: #2a3145; border-radius: 2px;
  margin-top: -18px;
}
.sgg-step-line.done { background: #00B7FF; }

.sgg-body { padding: 4px 24px 4px; text-align: left; }
.sgg-section-title {
  color: #fff; font-weight: 800; font-size: 15px; margin-bottom: 2px;
}
.sgg-sub { color: #7c8598; font-size: 12.5px; margin-bottom: 10px; }

.sgg-input-row { display: flex; gap: 8px; align-items: stretch; }
.sgg-input {
  flex: 1; box-sizing: border-box;
  background: #0a1220; border: 1px solid rgba(255,255,255,0.07);
  color: #fff; font-size: 14px; padding: 11px 14px;
  border-radius: 10px; outline: none;
  transition: border-color .18s, box-shadow .18s;
  font-family: inherit;
}
.sgg-input:focus { border-color: #00B7FF; box-shadow: 0 0 0 3px rgba(0,183,255,0.14); }
.sgg-save-btn {
  padding: 0 16px; border-radius: 10px;
  background: transparent; border: 1px solid rgba(255,255,255,0.1);
  color: #cfd5e3; font-size: 13px; font-weight: 700; cursor: pointer;
  transition: all .15s;
}
.sgg-save-btn:hover { border-color: rgba(0,183,255,0.5); color: #fff; }

.sgg-warn {
  display: flex; gap: 10px; align-items: flex-start;
  background: rgba(255,140,0,0.06);
  border: 1px solid rgba(255,140,0,0.35);
  border-radius: 10px; padding: 10px 12px;
  color: #ffb066; font-size: 12.5px; line-height: 1.45;
  margin-bottom: 12px;
}
.sgg-warn strong { color: #fff; }
.sgg-warn i { padding-top: 2px; }

.sgg-subtabs {
  display: flex; justify-content: center; gap: 8px;
  background: transparent; margin-bottom: 12px;
}
.sgg-subtab {
  padding: 10px 32px; border-radius: 10px; min-width: 180px; text-align: center;
  background: #0a1220; border: 1px solid rgba(255,255,255,0.06);
  color: #b8c2d4; font-weight: 700; font-size: 13px; cursor: pointer;
}
.sgg-subtab.active { color: #fff; border-color: rgba(0,183,255,0.4); }
.sgg-subtab[disabled] { cursor: not-allowed; opacity: .55; }

.sgg-pay-card {
  background: #0a1220; border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px; padding: 6px 14px; margin-bottom: 14px;
}
.sgg-pay-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.sgg-pay-row:last-child { border-bottom: none; }
.sgg-pay-label { color: #7c8598; font-size: 13px; font-weight: 600; }
.sgg-pay-value { color: #fff; font-weight: 700; font-size: 14px; }
.sgg-pay-value-wrap { display: flex; align-items: center; gap: 10px; }
.sgg-mono { color: #fff; font-weight: 700; font-size: 14px; letter-spacing: .3px; }
.sgg-copy {
  background: transparent; border: none;
  color: #00B7FF; font-size: 11.5px; font-weight: 800;
  padding: 2px 4px; cursor: pointer;
  letter-spacing: .5px; text-transform: lowercase;
}
.sgg-copy:hover { text-decoration: underline; }

.sgg-actions {
  display: grid; grid-template-columns: 1fr 2fr; gap: 10px;
  margin: 4px 0 18px;
}
.sgg-primary-wrap { padding: 0 24px 18px; }

.sgg-primary {
  width: 100%; padding: 14px 18px;
  border: none; border-radius: 12px;
  background: #00B7FF; color: #06131f;
  font-weight: 800; font-size: 14.5px; letter-spacing: .3px;
  cursor: pointer;
  transition: filter .15s, transform .15s;
  font-family: inherit;
}
.sgg-primary:hover:not(:disabled) { filter: brightness(1.08); }
.sgg-primary:active:not(:disabled) { transform: translateY(1px); }
.sgg-primary.sgg-waiting {
  background: #1a2740; color: #7c8598;
  box-shadow: none; cursor: not-allowed;
}
.sgg-primary.sgg-verified {
  background: #00B7FF; color: #06131f; cursor: pointer;
}
.sgg-back {
  padding: 14px 18px; border-radius: 12px;
  background: transparent; border: 1px solid rgba(255,255,255,0.1);
  color: #cfd5e3; font-weight: 700; font-size: 14px; cursor: pointer;
  transition: all .15s;
}
.sgg-back:hover { color: #fff; border-color: rgba(255,255,255,0.24); }

.sgg-footer {
  padding: 12px 24px 18px; text-align: center;
  border-top: 1px solid rgba(255,255,255,0.04);
  margin-top: 4px;
}
.sgg-footer a {
  color: #cfd5e3; font-size: 12.5px; font-weight: 600;
  text-decoration: underline; text-decoration-color: rgba(255,255,255,0.3);
}
.sgg-footer a:hover { color: #fff; }
.sgg-powered { color: #6b7488; font-size: 11px; margin-top: 6px; letter-spacing: .3px; }

.sgg-success-icon {
  font-size: 44px; color: #00B7FF;
  margin-bottom: 8px;
}
.sgg-success-amount { color: #fff; font-weight: 800; font-size: 22px; }
.sgg-success-sub    { color: #7c8598; font-size: 12.5px; margin-top: 2px; }

@media (max-width: 480px) {
  .sgg-amount { font-size: 26px; }
  .sgg-actions { grid-template-columns: 1fr; }
  .sgg-back { order: 2; }
}

/* ── Store Discount Banner ────────────────────────────────────── */
#discount-banner {
  display: none; /* hidden by default, JS shows it when discount is active */
  background: linear-gradient(90deg, #0d2a3a 0%, #0a2032 100%);
  border: 1px solid var(--color-main);
  border-radius: 12px;
  padding: 12px 20px;
  margin-bottom: 16px;
  align-items: center;
  gap: 14px;
  overflow: hidden;
  position: relative;
}
#discount-banner.active { display: flex; }
#discount-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(0,183,255,0.07) 0%, transparent 60%);
  pointer-events: none;
}
.discount-badge {
  background: var(--color-main);
  color: #06131f;
  font-size: 13px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 100px;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.5px;
}
.discount-info { flex: 1; min-width: 0; }
.discount-info strong {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  display: block;
}
.discount-info span {
  color: #888;
  font-size: 12px;
}
#discount-countdown {
  color: var(--color-main);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Strike-through original price on cards when discount active */
.product-price .original-price {
  color: #666;
  text-decoration: line-through;
  font-size: 12px;
  font-weight: 600;
  margin-right: 4px;
  display: block;
  line-height: 1;
}
.product-price .discounted-price {
  display: block;
  line-height: 1.2;
}
