/* ===================================================================
   VIETNAMRB.COM - DESIGN SYSTEM & STYLESHEET
   Style: Signature Red & White Gaming Store Theme
   Author: HESCO
   =================================================================== */

:root {
  --primary-red: #e62327;
  --dark-red: #c0151a;
  --light-red: #ff4f53;
  --gradient-red: linear-gradient(90deg, #c0151a, #e62327, #ff4f53);
  --gradient-btn: linear-gradient(135deg, #ed3a55, #ec4899);
  
  --bg-body: #f3f4f6;
  --bg-card: #ffffff;
  --bg-input: #ffffff;
  --border-color: #e5e7eb;
  --border-focus: #e62327;

  --text-main: #1f2937;
  --text-muted: #6b7280;
  --text-red: #dc2626;
  --text-green: #059669;

  --font-main: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-accent: 'Itim', cursive, sans-serif;
  --font-display: 'Plus Jakarta Sans', sans-serif;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 25px -5px rgba(230, 35, 39, 0.2);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.site-body {
  font-family: var(--font-main);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Container */
.main-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 16px 40px;
}

/* ==============================================
   POPUP NOTIFY (Góc trên phải giống vietnamrb.com)
   ============================================== */
.popup-notify {
  position: fixed;
  top: 74px;
  right: 20px;
  z-index: 9999;
  background: var(--gradient-red);
  color: #fff;
  padding: 12px 18px;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(230, 35, 39, 0.35);
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 440px;
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.popup-notify.show {
  transform: translateX(0);
  opacity: 1;
}

.popup-icon {
  font-size: 26px;
  flex-shrink: 0;
}

.popup-text {
  font-size: 0.85rem;
  line-height: 1.35;
}

.popup-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 6px;
  margin-left: auto;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 10;
}

.popup-close:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.15);
}

/* ==============================================
   HEADER & NAVBAR
   ============================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #fff;
  border-bottom: 1px solid #f1f2f4;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.menu-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-badge-wrap {
  display: flex;
  flex-direction: column;
}

.logo-main {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.4rem;
  color: #111827;
  letter-spacing: -0.5px;
  line-height: 1;
}

.logo-accent {
  color: var(--primary-red);
}

.logo-sub {
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--dark-red);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #b91c1c;
  padding: 6px 10px;
  border-radius: 6px;
  transition: all 0.2s;
}

.nav-link .icon-wrap {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: #fee2e2;
  color: #dc2626;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.nav-link:hover, .nav-link.active {
  background: #fef2f2;
  color: #ef4444;
}

.menu-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-login {
  background: var(--gradient-red);
  color: #fff;
  border: none;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 100px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 10px rgba(220, 38, 38, 0.3);
  transition: transform 0.2s;
}

.btn-login:hover {
  transform: translateY(-1px);
}

.btn-reg {
  background: #fff;
  color: #dc2626;
  border: 1px solid #dc2626;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-reg:hover {
  background: #fee2e2;
}

.user-profile-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  padding: 4px 12px;
  border-radius: 100px;
}

.user-avatar-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #dc2626;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
}

.user-info-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  font-size: 0.76rem;
}

.user-name {
  font-weight: 700;
  color: #111827;
}

.user-balance strong {
  color: #dc2626;
}

.btn-profile-menu {
  background: none;
  border: none;
  color: #dc2626;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 2px 4px;
  transition: transform 0.2s;
}

.btn-profile-menu:hover {
  transform: rotate(45deg);
}

.btn-add-acc-nav {
  display: none !important;
  align-items: center;
  gap: 4px;
  background: #dc2626;
  color: #fff;
  border: none;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.35);
  transition: all 0.2s;
}

.btn-add-acc-nav:hover {
  background: #b91c1c;
  transform: translateY(-1px);
}

.btn-admin-pill {
  display: none !important;
  align-items: center;
  gap: 4px;
  background: #dc2626;
  color: #fff !important;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 100px;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.4);
  text-decoration: none;
  transition: all 0.2s;
}

.btn-admin-pill:hover {
  background: #b91c1c;
  transform: translateY(-1px);
}

/* Strictly show ONLY when user is verified Super Admin lehoangdieu */
body.is-admin .btn-add-acc-nav,
body.is-admin .btn-admin-pill {
  display: inline-flex !important;
}

.admin-nav-link {
  color: #dc2626 !important;
  background: rgba(220, 38, 38, 0.08);
  border: 1px dashed rgba(220, 38, 38, 0.4);
  border-radius: 8px;
  font-weight: 800 !important;
}

.admin-nav-link:hover {
  background: #dc2626 !important;
  color: #fff !important;
}
.admin-nav-link:hover span {
  color: #fff !important;
}

.btn-logout {
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 2px 4px;
}

.btn-logout:hover {
  color: #dc2626;
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 1.8rem;
  color: #dc2626;
  cursor: pointer;
}

.mobile-nav-drawer {
  display: none;
  flex-direction: column;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 10px 16px;
}

.mob-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  font-weight: 700;
  font-size: 0.9rem;
  color: #b91c1c;
  border-bottom: 1px dashed #f3f4f6;
}

/* ==============================================
   HERO GRID: SLIDER (LEFT) + NẠP THẺ (RIGHT)
   ============================================== */
.hero-grid {
  display: grid;
  grid-template-columns: 8fr 4fr;
  gap: 16px;
  margin-top: 14px;
  margin-bottom: 16px;
}

.hero-left-banner {
  height: 100%;
}

.slider-box {
  background: linear-gradient(135deg, #111827 0%, #1f2937 60%, #991b1b 100%);
  border-radius: 12px;
  height: 100%;
  min-height: 380px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  color: #fff;
}

.slide-badge {
  display: inline-block;
  background: rgba(230, 35, 39, 0.9);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 100px;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
  width: fit-content;
}

.slide-title {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.slide-desc {
  font-size: 0.95rem;
  color: #d1d5db;
  max-width: 520px;
  margin-bottom: 24px;
  line-height: 1.5;
}

.slide-ctas {
  display: flex;
  gap: 12px;
}

.hero-right-widget {
  height: 100%;
}

/* Topup Card Container */
.topup-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #fee2e2;
}

.topup-tabs {
  display: flex;
}

.topup-tab-btn {
  flex: 1;
  padding: 12px 10px;
  border: none;
  font-weight: 700;
  font-size: 0.82rem;
  background: #e5e7eb;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.topup-tab-btn.active {
  background: #fff;
  color: #dc2626;
  border-bottom: 2px solid #dc2626;
}

.topup-body {
  padding: 16px;
  flex-grow: 1;
}

.form-group-sm {
  margin-bottom: 10px;
}

.form-group-sm label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #374151;
  margin-bottom: 4px;
}

.select-sm, .input-sm {
  width: 100%;
  height: 36px;
  padding: 6px 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.84rem;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s;
}

textarea.input-sm {
  height: auto;
}

.select-sm:focus, .input-sm:focus {
  border-color: var(--primary-red);
}

.btn-charge {
  margin-top: 14px;
  padding: 10px;
  font-size: 0.9rem;
}

/* Top nạp tháng list */
.top-list-scroll {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 250px;
  overflow-y: auto;
}

.top-user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: #f9fafb;
  border-radius: 6px;
  font-size: 0.82rem;
}

.rank-badge {
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.72rem;
}

.rank-badge.top-1 { background: #fef3c7; color: #b45309; }
.rank-badge.top-2 { background: #e0e7ff; color: #3730a3; }
.rank-badge.top-3 { background: #fee2e2; color: #991b1b; }

.user-tag {
  font-weight: 600;
  color: #374151;
}

.top-amount {
  color: #dc2626;
}

.reward-notice {
  font-size: 0.76rem;
  background: #fef2f2;
  border-left: 3px solid #dc2626;
  padding: 8px 10px;
  margin-top: 12px;
  color: #991b1b;
}

/* ==============================================
   QUICK ICON BUTTONS BAR
   ============================================== */
.quick-icons-bar {
  background: #fff;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid #fee2e2;
}

.quick-icons-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.2s;
}

.quick-item:hover {
  background: #fef2f2;
}

.icon-avatar {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}

.quick-item:hover .icon-avatar {
  transform: scale(1.08);
}

.icon-avatar.youtube { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.icon-avatar.robux { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.icon-avatar.discord { background: linear-gradient(135deg, #6366f1, #4338ca); }
.icon-avatar.blox { background: linear-gradient(135deg, #f59e0b, #d97706); }
.icon-avatar.egg { background: linear-gradient(135deg, #10b981, #047857); }
.icon-avatar.acc { background: linear-gradient(135deg, #e62327, #991b1b); }
.icon-avatar.v4 { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.icon-avatar.wallet { background: linear-gradient(135deg, #10b981, #047857); }

.service-temporarily-disabled,
#random-acc-section,
#mini-game-section {
  display: none !important;
}

.quick-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: #374151;
  text-transform: uppercase;
}

/* ==============================================
   NOTIFICATION RUNNING MARQUEE
   ============================================== */
.notify-marquee-bar {
  background: #fff;
  border-radius: 10px;
  padding: 8px 14px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #fee2e2;
  box-shadow: var(--shadow-sm);
}

.marquee-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fee2e2;
  color: #dc2626;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.marquee-wrapper {
  overflow: hidden;
  white-space: nowrap;
  flex: 1;
}

.marquee-content {
  display: inline-block;
  font-size: 0.84rem;
  font-weight: 700;
  color: #dc2626;
  animation: marqueeRun 24s linear infinite;
}

@keyframes marqueeRun {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* ==============================================
   MINI GAME ROLLER ROULETTE (Signature VietnamRB)
   ============================================== */
.mini-game-container {
  margin-bottom: 30px;
}

.mini-game-box {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid #fee2e2;
  padding: 16px;
}

.mini-game-instructions {
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: #4b5563;
  margin-bottom: 12px;
}

.mini-game-roller {
  position: relative;
  height: 185px;
  overflow: hidden;
  background: #f8fafc;
  border-top: 2px solid #e62327;
  border-bottom: 2px solid #e62327;
  border-radius: 8px;
}

.center-pointer {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  width: 0;
  height: 0;
}

.center-pointer.top-pointer {
  top: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 32px solid #e62327;
}

.center-pointer.bottom-pointer {
  bottom: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-bottom: 32px solid #e62327;
}

.mini-game-track {
  display: flex;
  align-items: center;
  height: 100%;
  padding-left: 50%;
  padding-right: 50%;
  will-change: transform;
}

.mini-game-item {
  flex: 0 0 160px;
  width: 160px;
  height: 160px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mini-game-card {
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 12px;
  border: 1px dashed #e62327;
  box-shadow: 0 0 10px rgba(230, 35, 39, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.mini-game-card img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 6px;
}

.mini-game-card .item-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #111827;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 130px;
}

.mini-game-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.mini-stats {
  display: flex;
  gap: 16px;
  font-size: 0.88rem;
  font-weight: 600;
}

.btn-spin {
  font-size: 1rem;
  padding: 12px 28px;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(230, 35, 39, 0.4);
}

.btn-spin:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ==============================================
   FILTER TOOLBAR (Search & Category Pills)
   ============================================== */
.filter-toolbar {
  background: #fff;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 24px;
  border: 1px solid #fee2e2;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.filter-search-box {
  display: flex;
  align-items: center;
  background: #f9fafb;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 8px 14px;
  gap: 10px;
}

.filter-search-box i {
  font-size: 1.25rem;
  color: #9ca3af;
}

.filter-search-box input {
  background: transparent;
  border: none;
  outline: none;
  font-size: 0.92rem;
  width: 100%;
  font-family: inherit;
}

.filter-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.cat-pill {
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #4b5563;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.cat-pill:hover, .cat-pill.active {
  background: var(--gradient-red);
  color: #fff;
  border-color: #dc2626;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.25);
}

/* ==============================================
   SECTION HEADERS
   ============================================== */
.section-container {
  margin-bottom: 30px;
}

.category-header {
  background: #fff;
  border-bottom: 2px solid #fee2e2;
  border-radius: 10px 10px 0 0;
  padding: 12px 18px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}

.cat-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: #e62327;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* ==============================================
   SHOP PRODUCT GRID
   ============================================== */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.shop-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid #f1f2f4;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  display: flex;
  flex-direction: column;
}

.shop-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.12);
  border-color: #fecaca;
}

.card-thumb {
  position: relative;
  width: 100%;
  height: 160px;
  overflow: hidden;
  background: #e5e7eb;
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.shop-card:hover .card-thumb img {
  transform: scale(1.06);
}

/* Stock Badges */
.stock-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 9999px;
}

.stock-badge.in-stock {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.stock-badge.in-stock::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  animation: pulse 1.8s infinite;
}

.stock-badge.out-of-stock {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.stock-badge.out-of-stock::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.card-info {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #111827;
  text-transform: uppercase;
  margin-bottom: 8px;
  line-height: 1.35;
  height: 38px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.sale-badge {
  font-size: 0.68rem;
  font-weight: 700;
  background: #fee2e2;
  color: #dc2626;
  padding: 2px 6px;
  border-radius: 4px;
}

.card-price {
  font-size: 1rem;
  font-weight: 900;
  color: #e62327;
  font-family: var(--font-display);
}

.btn-buy {
  padding: 8px;
  font-size: 0.84rem;
  border-radius: 8px;
}

/* ==============================================
   ORDER TRACKING BOX
   ============================================== */
.tracking-wrap-box {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  border: 1px solid #fee2e2;
  box-shadow: var(--shadow-sm);
}

.track-desc {
  font-size: 0.88rem;
  color: #4b5563;
  margin-bottom: 16px;
}

.track-input-row {
  display: flex;
  gap: 10px;
  max-width: 600px;
}

.track-input {
  flex: 1;
  height: 42px;
  padding: 8px 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.95rem;
  outline: none;
  font-family: inherit;
}

.track-input:focus {
  border-color: #dc2626;
}

.demo-track-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 0.8rem;
  color: #6b7280;
  flex-wrap: wrap;
}

.pill-btn {
  background: #fee2e2;
  border: 1px solid #fecaca;
  color: #dc2626;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.78rem;
}

.pill-btn:hover {
  background: #fca5a5;
  color: #fff;
}

.track-result-box {
  margin-top: 20px;
  padding: 18px;
  background: #f9fafb;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
}

/* ==============================================
   BUTTONS
   ============================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  outline: none;
  text-decoration: none;
  font-family: inherit;
}

.btn-red {
  background: var(--gradient-red);
  color: #fff;
  border-radius: 8px;
}

.btn-red:hover {
  filter: brightness(1.08);
  box-shadow: 0 4px 14px rgba(230, 35, 39, 0.4);
}

.btn-green {
  background: #10b981;
  color: #fff;
  border-radius: 8px;
}

.btn-green:hover {
  background: #059669;
}

.btn-outline-light {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.78rem;
}

.btn-lg {
  padding: 12px 24px;
  font-size: 0.95rem;
}

.btn-block {
  width: 100%;
}

.btn-quick-amount {
  flex: 1 1 calc(20% - 6px);
  min-width: 54px;
  padding: 8px 6px;
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.btn-quick-amount:hover,
.btn-quick-amount.active {
  background: #dc2626;
  color: #ffffff;
  border-color: #dc2626;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.25);
}

.text-red { color: #dc2626 !important; }
.text-green { color: #059669 !important; }

/* ==============================================
   FOOTER
   ============================================== */
.site-footer {
  background: #111827;
  color: #d1d5db;
  padding: 50px 0 0;
  font-size: 0.88rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.3fr;
  gap: 30px;
}

.footer-logo .logo-main {
  color: #fff;
}

.footer-about {
  font-size: 0.82rem;
  color: #9ca3af;
  margin: 14px 0 18px;
  line-height: 1.6;
}

.footer-social-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.f-soc {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #9ca3af;
  font-size: 0.82rem;
  transition: color 0.2s;
}

.f-soc:hover {
  color: #ef4444;
}

.f-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  text-transform: uppercase;
  border-left: 3px solid #dc2626;
  padding-left: 8px;
}

.f-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.f-list a {
  color: #9ca3af;
  font-size: 0.82rem;
  transition: color 0.2s;
}

.f-list a:hover {
  color: #fff;
  padding-left: 4px;
}

.f-contact-line {
  font-size: 0.82rem;
  color: #9ca3af;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.f-contact-line strong {
  color: #ef4444;
}

.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 0;
  font-size: 0.76rem;
  color: #6b7280;
}

.f-bottom-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ==============================================
   MODALS SYSTEM
   ============================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: #fff;
  width: 100%;
  max-width: 440px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transform: translateY(15px);
  transition: transform 0.25s;
}

.modal-card.modal-lg-card {
  max-width: 680px;
}

.modal-overlay.open .modal-card {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 10px;
  right: 14px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  z-index: 10;
}

.modal-header-red {
  background: var(--gradient-red);
  color: #fff;
  padding: 14px 20px;
  text-align: center;
}

.modal-header-red h3 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.modal-body-pad {
  padding: 20px;
  max-height: 80vh;
  overflow-y: auto;
}

/* ==============================================
   USER DASHBOARD MODAL STYLING
   ============================================== */
.user-dash-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 14px;
}

.dash-avatar-box {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fee2e2;
  color: #dc2626;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.dash-info-box {
  flex: 1;
}

.dash-info-box h4 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 4px;
}

.dash-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.user-role-badge {
  font-size: 0.72rem;
  font-weight: 800;
  background: #fef3c7;
  color: #b45309;
  padding: 2px 8px;
  border-radius: 4px;
}

.user-balance-pill {
  font-size: 0.75rem;
  color: #4b5563;
}

.user-balance-pill strong {
  color: #dc2626;
}

.dash-nav-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 6px;
  overflow-x: auto;
}

.dash-tab-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: #4b5563;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  white-space: nowrap;
}

.dash-tab-btn.active {
  background: #fee2e2;
  color: #dc2626;
}

.table-responsive {
  overflow-x: auto;
}

.dash-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  text-align: left;
}

.dash-table th {
  background: #f9fafb;
  padding: 8px 10px;
  color: #6b7280;
  font-weight: 700;
  border-bottom: 1px solid #e5e7eb;
}

.dash-table td {
  padding: 10px;
  border-bottom: 1px solid #f3f4f6;
  color: #1f2937;
}

.inventory-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.inventory-item-card {
  background: #fef2f2;
  border: 1px dashed #f87171;
  border-radius: 8px;
  padding: 10px;
  text-align: center;
}

.inventory-item-card img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 6px;
}

.inventory-item-card .inv-name {
  font-size: 0.74rem;
  font-weight: 700;
  color: #111827;
}

.inventory-item-card .inv-date {
  font-size: 0.65rem;
  color: #9ca3af;
}

/* Auth Divider & Modal Extras */
.auth-divider {
  text-align: center;
  margin: 16px 0;
  position: relative;
}

.auth-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #e5e7eb;
}

.auth-divider span {
  position: relative;
  background: #fff;
  padding: 0 10px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #9ca3af;
}

.auth-switch-text {
  text-align: center;
  font-size: 0.82rem;
  color: #6b7280;
  margin-top: 14px;
}

.auth-switch-text a {
  color: #dc2626;
  font-weight: 700;
}

/* ATM & VietQR Modal Details */
.atm-info-banner {
  background: #fee2e2;
  border: 1px solid #fecaca;
  color: #991b1b;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.qr-box-center {
  text-align: center;
  margin-bottom: 14px;
}

.atm-qr-img {
  width: 200px;
  height: 200px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.atm-details-table {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 12px;
  font-size: 0.82rem;
}

.atm-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
}

.atm-row.highlight {
  border-top: 1px dashed #d1d5db;
  padding-top: 8px;
  margin-top: 4px;
}

.copyable {
  cursor: pointer;
  color: #111827;
}

.copyable:hover {
  text-decoration: underline;
}

.atm-instruction {
  font-size: 0.76rem;
  color: #6b7280;
  line-height: 1.4;
  margin-bottom: 14px;
}

/* Order Summary Box */
.order-summary-box {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 14px;
}

.o-sum-title {
  font-weight: 800;
  color: #111827;
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.o-sum-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: #4b5563;
}

.o-sum-row.price-row {
  font-size: 1rem;
  font-weight: 800;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed #fecaca;
}

.pay-method-choice {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pay-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.82rem;
  cursor: pointer;
}

.pay-option.active {
  border-color: #dc2626;
  background: #fef2f2;
}

/* Prize Modal */
.modal-prize-card {
  text-align: center;
  padding: 30px 24px;
}

.prize-confetti {
  font-size: 3rem;
  margin-bottom: 8px;
}

.prize-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #dc2626;
  margin-bottom: 16px;
}

.prize-display-frame {
  background: #fef2f2;
  border: 2px dashed #dc2626;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.prize-img-wrap img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 8px;
}

.prize-name {
  font-weight: 800;
  font-size: 1.05rem;
  color: #111827;
}

.prize-desc {
  font-size: 0.84rem;
  color: #6b7280;
  margin-bottom: 20px;
}

/* Floating Contact Widget */
.floating-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
}

.float-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 100px;
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s;
}

.float-btn.fb-btn {
  background: linear-gradient(135deg, #0084ff, #00c6ff);
}

.float-btn:hover {
  transform: translateY(-2px);
}

/* Toast System */
.toast-container {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  background: #111827;
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.82rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
  border-left: 4px solid #dc2626;
  animation: slideToast 0.3s ease;
}

.toast.success {
  border-left-color: #10b981;
}

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

/* Responsive */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .shop-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .quick-icons-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
  .inventory-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .shop-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===================================================================
   FLASH SALE & ACCOUNT MARKETPLACE & RANDOM BOXES STYLES
   =================================================================== */

/* Flash Sale Countdown Banner */
.flash-sale-wrapper {
  background: linear-gradient(135deg, #991b1b, #dc2626, #ef4444);
  border-radius: 12px;
  padding: 16px 24px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  box-shadow: 0 8px 25px rgba(220, 38, 38, 0.35);
  flex-wrap: wrap;
  gap: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.flash-title-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.flash-fire-icon {
  font-size: 2.2rem;
  color: #fef08a;
  animation: flameBounce 1.2s infinite alternate;
}

@keyframes flameBounce {
  from { transform: scale(1) rotate(-3deg); }
  to { transform: scale(1.15) rotate(3deg); }
}

.flash-heading {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1.1;
  text-transform: uppercase;
}

.flash-sub {
  font-size: 0.8rem;
  color: #fee2e2;
  font-weight: 600;
}

.flash-timer-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.flash-timer-label {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #fef08a;
}

.countdown-timer-boxes {
  display: flex;
  align-items: center;
  gap: 6px;
}

.time-digit-box {
  background: #111827;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.1rem;
  padding: 6px 10px;
  border-radius: 6px;
  min-width: 40px;
  text-align: center;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,0.5);
}

.time-colon {
  font-weight: 900;
  font-size: 1.2rem;
  color: #fff;
}

/* Account Marketplace Cards Grid */
.acc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.acc-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  position: relative;
}

.acc-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #fca5a5;
}

.acc-thumb-wrap {
  width: 100%;
  height: 185px;
  position: relative;
  overflow: hidden;
  background: #1e293b;
}

.acc-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.acc-card:hover .acc-thumb-img {
  transform: scale(1.05);
}

.acc-ms-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(17, 24, 39, 0.85);
  backdrop-filter: blur(4px);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.acc-discount-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #dc2626;
  color: #fff;
  font-weight: 900;
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.5);
}

.acc-body {
  padding: 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.acc-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 10px;
  line-height: 1.3;
}

.acc-specs-list {
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.78rem;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.spec-key {
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 4px;
}

.spec-val {
  font-weight: 700;
  color: #0f172a;
}

.spec-val.highlight-val {
  color: #dc2626;
}

.acc-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}

.acc-price-box {
  display: flex;
  flex-direction: column;
}

.acc-price-current {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 900;
  color: #dc2626;
}

.acc-price-old {
  font-size: 0.75rem;
  color: #94a3b8;
  text-decoration: line-through;
}

.acc-actions {
  display: flex;
  gap: 6px;
}

.btn-acc-detail {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-acc-detail:hover {
  background: #e2e8f0;
}

.btn-acc-buy {
  background: #dc2626;
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
  transition: all 0.2s;
}

.btn-acc-buy:hover {
  background: #b91c1c;
  transform: translateY(-1px);
}

/* Multi-Game Badges & Dynamic Auto-Sync */
.acc-game-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.3px;
  z-index: 2;
}

.acc-game-badge.game-blox-fruits {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.9), rgba(124, 58, 237, 0.9));
  border-color: rgba(147, 197, 253, 0.6);
}

.acc-game-badge.game-steal-brainrot {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.95), rgba(5, 150, 105, 0.95));
  border-color: rgba(110, 231, 183, 0.7);
}

.acc-game-badge.game-grow-garden {
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.95), rgba(22, 163, 74, 0.95));
  border-color: rgba(94, 234, 212, 0.7);
}

.acc-game-badge.game-fish-it {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.95), rgba(2, 132, 199, 0.95));
  border-color: rgba(103, 232, 249, 0.7);
}

.acc-game-badge.game-the-force {
  background: linear-gradient(135deg, rgba(234, 88, 12, 0.95), rgba(225, 29, 72, 0.95));
  border-color: rgba(253, 186, 116, 0.7);
}

.acc-game-badge.game-ride-pet {
  background: linear-gradient(135deg, rgba(217, 70, 239, 0.95), rgba(168, 85, 247, 0.95));
  border-color: rgba(240, 171, 252, 0.7);
}

.auto-sync-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.76rem;
  font-weight: 700;
}

.btn-refresh-sync {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s;
}

.btn-refresh-sync:hover {
  background: #dbeafe;
  border-color: #93c5fd;
  transform: translateY(-1px);
}

.btn-refresh-sync.spinning i {
  animation: spin 0.8s infinite linear;
}

/* Multi-Game Selector Pills */
.game-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.game-pill {
  background: #fff;
  border: 1px solid var(--border-color);
  color: #334155;
  padding: 8px 16px;
  border-radius: 24px;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.game-pill:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.game-pill.active {
  background: #dc2626;
  color: #fff;
  border-color: #dc2626;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.game-pill .pill-count {
  background: rgba(0, 0, 0, 0.08);
  padding: 2px 7px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 700;
}

.game-pill.active .pill-count {
  background: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.sub-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
  padding: 8px 12px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 10px;
}

.sub-pill {
  background: transparent;
  border: 1px solid transparent;
  color: #64748b;
  padding: 5px 12px;
  border-radius: 16px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.sub-pill:hover {
  color: #0f172a;
  background: #f1f5f9;
}

.sub-pill.active {
  background: #1e293b;
  color: #fff;
}

/* Random Box Cards */
.random-box-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.random-card {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 2px solid #f59e0b;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  color: #fff;
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}

.random-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.4);
}

.random-icon-chest {
  font-size: 3rem;
  color: #fbbf24;
  margin-bottom: 10px;
  filter: drop-shadow(0 0 12px rgba(245, 158, 11, 0.6));
  animation: chestHover 2s infinite ease-in-out;
}

@keyframes chestHover {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.random-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: #fef08a;
}

.random-desc {
  font-size: 0.78rem;
  color: #cbd5e1;
  margin-bottom: 14px;
}

.random-price {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 900;
  color: #34d399;
  margin-bottom: 14px;
}

.btn-random-open {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
  width: 100%;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
  transition: transform 0.2s;
}

.btn-random-open:hover {
  transform: scale(1.02);
}

/* Live Purchase Popup Notification */
.live-sales-popup {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #10b981;
  border-radius: 10px;
  padding: 10px 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 999;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
  pointer-events: none;
}

.live-sales-popup.show {
  transform: translateY(0);
  opacity: 1;
}

.live-sales-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ecfdf5;
  color: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.live-sales-text {
  font-size: 0.78rem;
  color: #334155;
  line-height: 1.25;
}

.live-sales-text strong {
  color: #0f172a;
}

.live-sales-time {
  font-size: 0.7rem;
  color: #94a3b8;
}

@media (max-width: 640px) {
  .desktop-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .slide-title {
    font-size: 1.5rem;
  }
  .shop-grid {
    grid-template-columns: 1fr 1fr;
  }
  .quick-icons-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-container {
    grid-template-columns: 1fr;
  }
  .f-bottom-inner {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }
  .popup-notify {
    left: 10px;
    right: 10px;
    max-width: none;
  }
}

/* ===================================================================
   ADD ACCOUNT TO WAREHOUSE & PHOTO PICKER PALETTE
   =================================================================== */
.shop-acc-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.acc-admin-quick-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-add-acc-highlight {
  background: linear-gradient(135deg, #e62327 0%, #991b1b 100%);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 10px 18px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(230, 35, 39, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  border: 1px solid #fca5a5;
  transition: all 0.25s ease;
  animation: pulseGlowBtn 2.2s infinite;
}

@keyframes pulseGlowBtn {
  0% { box-shadow: 0 0 0 0 rgba(230, 35, 39, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(230, 35, 39, 0); }
  100% { box-shadow: 0 0 0 0 rgba(230, 35, 39, 0); }
}

.btn-add-acc-highlight:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230, 35, 39, 0.6);
  color: #fff;
}

.btn-add-acc-nav {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fca5a5;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s;
}

.btn-add-acc-nav:hover {
  background: #dc2626;
  color: #fff;
}

.admin-stock-banner {
  background: linear-gradient(90deg, #fef2f2, #fff);
  border: 1px solid #fecaca;
  border-left: 5px solid #dc2626;
  border-radius: 8px;
  padding: 12px 18px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: #374151;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.stock-banner-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stock-banner-left i {
  font-size: 1.4rem;
  color: #dc2626;
}

.btn-sm-stock {
  background: #dc2626;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 7px 16px;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

.btn-sm-stock:hover {
  background: #b91c1c;
  transform: translateY(-1px);
}

/* Palette Styles */
.palette-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.palette-tab {
  background: #e2e8f0;
  color: #334155;
  border: none;
  border-radius: 6px;
  padding: 7px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.palette-tab:hover {
  background: #cbd5e1;
}

.palette-tab.active {
  background: #dc2626;
  color: #fff;
}

.palette-grid-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
  padding: 6px;
  background: #fff;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
}

.palette-card-item {
  border: 2px solid #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
  background: #0f172a;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  position: relative;
  padding: 4px;
}

.palette-card-item:hover {
  transform: scale(1.05);
  border-color: #f87171;
}

.palette-card-item.selected {
  border-color: #10b981;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
  background: #1e293b;
}

.palette-card-item.selected::after {
  content: '✓';
  position: absolute;
  top: 2px;
  right: 3px;
  background: #10b981;
  color: #fff;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

.palette-card-img {
  width: 100%;
  height: 52px;
  object-fit: contain;
  display: block;
}

.palette-card-name {
  font-size: 0.68rem;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  margin-top: 4px;
  font-weight: 600;
}

/* ==========================================
   ADMIN ONLY ACCESS CONTROLS (FRONTEND)
   ========================================== */
.admin-only-feature {
  display: none !important;
}

body.is-admin .admin-only-feature {
  display: inline-flex !important;
}

body.is-admin a.admin-only-feature,
body.is-admin div.admin-only-feature,
body.is-admin section.admin-only-feature {
  display: flex !important;
}

/* Ticket & Order Styles */
.order-code-banner {
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
  border: 1.5px dashed #dc2626;
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.order-code-badge {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 900;
  color: #dc2626;
  letter-spacing: 0.5px;
}

.ticket-meta-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px;
}

.ticket-chat-history {
  height: 320px;
  overflow-y: auto;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-bubble {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.85rem;
  line-height: 1.45;
  position: relative;
  word-break: break-word;
}

.chat-bubble.bubble-system {
  align-self: center;
  background: #e2e8f0;
  color: #475569;
  font-size: 0.76rem;
  font-weight: 600;
  border-radius: 20px;
  padding: 5px 14px;
  max-width: 90%;
  text-align: center;
  border: 1px solid #cbd5e1;
}

.chat-bubble.bubble-customer {
  align-self: flex-end;
  background: #dc2626;
  color: #fff;
  border-bottom-right-radius: 2px;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.25);
}

.chat-bubble.bubble-admin {
  align-self: flex-start;
  background: #1e293b;
  color: #f8fafc;
  border-bottom-left-radius: 2px;
  border: 1px solid #334155;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.chat-bubble-author {
  font-size: 0.72rem;
  font-weight: 800;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.bubble-admin .chat-bubble-author {
  color: #f59e0b;
}

.bubble-customer .chat-bubble-author {
  color: #fca5a5;
  justify-content: flex-end;
}

.chat-bubble-time {
  font-size: 0.68rem;
  opacity: 0.7;
  margin-top: 4px;
  display: block;
  text-align: right;
}

/* ==============================================
/* ===================================================================
   MOBILE FIRST UI SYSTEM & INTERACTIVE COMPONENTS
   Author: HESCO
   =================================================================== */

/* 1. Account Search & Sort Filter Bar */
.shop-search-filter-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.shop-search-box {
  flex: 1;
  min-width: 220px;
  position: relative;
  display: flex;
  align-items: center;
}

.shop-search-box .search-icon {
  position: absolute;
  left: 14px;
  font-size: 1.15rem;
  color: #94a3b8;
  pointer-events: none;
}

.acc-search-input {
  width: 100%;
  height: 42px;
  padding: 8px 36px 8px 38px;
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 24px;
  font-size: 0.84rem;
  color: #1e293b;
  outline: none;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.acc-search-input:focus {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.btn-clear-search {
  position: absolute;
  right: 12px;
  background: #cbd5e1;
  color: #fff;
  border: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  cursor: pointer;
  line-height: 1;
}

.shop-sort-box {
  flex-shrink: 0;
}

.acc-sort-select {
  height: 42px;
  padding: 0 16px;
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 24px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #334155;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.acc-sort-select:focus {
  border-color: #dc2626;
}

/* 2. Account Detail Modal Grid */
.acc-detail-modal-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  align-items: start;
}

/* 3. Mobile Nav Drawer & Backdrop */
.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-drawer-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 86vw;
  height: 100vh;
  background: #ffffff;
  z-index: 9999;
  box-shadow: -5px 0 30px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-nav-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #fff;
  border-bottom: 1px solid #f1f5f9;
}

.drawer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.drawer-tag {
  background: #fee2e2;
  color: #dc2626;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}

.drawer-close-btn {
  background: #f1f5f9;
  border: none;
  font-size: 1.5rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s;
}

.drawer-close-btn:active {
  transform: scale(0.92);
  background: #e2e8f0;
}

.drawer-user-card {
  margin: 14px 16px 8px;
  background: linear-gradient(135deg, #fef2f2, #fff1f2);
  border: 1px solid #fecaca;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.08);
  transition: transform 0.2s;
}

.drawer-user-card:active {
  transform: scale(0.98);
}

.drawer-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gradient-red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.drawer-user-info {
  flex: 1;
  min-width: 0;
}

.drawer-user-name {
  font-weight: 800;
  font-size: 0.9rem;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drawer-user-sub {
  font-size: 0.72rem;
  color: #dc2626;
  font-weight: 600;
}

.drawer-arrow {
  font-size: 1.2rem;
  color: #94a3b8;
}

.drawer-links-scroll {
  padding: 8px 16px 40px;
  display: flex;
  flex-direction: column;
}

.drawer-group-title {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #94a3b8;
  margin: 14px 0 6px 4px;
}

.mob-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  font-weight: 700;
  font-size: 0.88rem;
  color: #334155;
  border-radius: 8px;
  transition: all 0.2s;
  text-decoration: none;
}

.mob-link i {
  font-size: 1.25rem;
  color: #dc2626;
}

.mob-link:hover,
.mob-link:active {
  background: #fef2f2;
  color: #dc2626;
}

.mob-link.hotline-link {
  color: #059669;
}
.mob-link.hotline-link i {
  color: #059669;
}

.drawer-admin-link {
  background: rgba(220, 38, 38, 0.08);
  border: 1px dashed rgba(220, 38, 38, 0.4);
}

/* 4. Mobile Bottom App Dock Navigation */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  display: none;
  align-items: center;
  justify-content: space-around;
  z-index: 4999;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.mob-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: #64748b;
  font-size: 0.66rem;
  font-weight: 700;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  flex: 1;
  padding: 6px 0;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.18s ease;
}

.mob-tab i {
  font-size: 1.35rem;
  line-height: 1;
  transition: transform 0.18s ease;
}

.mob-tab.active,
.mob-tab:active {
  color: #dc2626;
}

.mob-tab.active i {
  transform: translateY(-2px);
}

.mob-tab-fab {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  flex: 1;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}

.mob-tab-fab .fab-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff4f53, #dc2626, #b91c1c);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  box-shadow: 0 6px 16px rgba(220, 38, 38, 0.45);
  transform: translateY(-13px);
  border: 3px solid #fff;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mob-tab-fab:active .fab-circle {
  transform: translateY(-10px) scale(0.94);
}

.mob-tab-fab .fab-label {
  font-size: 0.64rem;
  font-weight: 900;
  color: #dc2626;
  margin-top: -9px;
  letter-spacing: 0.3px;
}

/* 5. Floating Contact Widget & Speed Dial */
.floating-widget {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 4990;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}

.float-btn-toggle {
  display: none;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  border: none;
  padding: 9px 14px;
  border-radius: 30px;
  font-weight: 800;
  font-size: 0.78rem;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
  cursor: pointer;
  animation: phonePulse 2.5s infinite;
  z-index: 10;
  transition: all 0.25s ease;
}

.float-btn-toggle i {
  font-size: 1.25rem;
}

.float-items-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}

.float-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 50px;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(8px);
}

.float-btn i {
  font-size: 1.25rem;
  line-height: 1;
}

.float-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  color: #fff;
}

.float-btn.fb-btn {
  background: linear-gradient(135deg, #1877f2, #0d5cb6);
}

.float-btn.tiktok-btn {
  background: linear-gradient(135deg, #111827, #000000);
  border: 1px solid rgba(255, 0, 80, 0.4);
}

.float-btn.tiktok-btn:hover {
  box-shadow: 0 8px 24px rgba(255, 0, 80, 0.4);
}

.float-btn.yt-btn {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
}

.float-btn.yt-btn:hover {
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.4);
}

.float-btn.phone-btn {
  background: linear-gradient(135deg, #10b981, #059669);
  animation: phonePulse 2.5s infinite;
}

@keyframes phonePulse {
  0%, 100% {
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.3);
  }
  50% {
    box-shadow: 0 6px 26px rgba(16, 185, 129, 0.6);
  }
}

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

/* ===================================================================
   RESPONSIVE DESIGN BREAKPOINTS: TABLET & MOBILE PHONE
   =================================================================== */

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .desktop-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

@media (max-width: 768px) {
  /* Safe padding for bottom dock */
  body.site-body {
    padding-bottom: 78px;
    -webkit-tap-highlight-color: transparent;
  }

  /* Show bottom app dock */
  .mobile-bottom-nav {
    display: flex;
  }

  /* Header compact styling */
  .header-container {
    padding: 8px 12px;
  }

  .logo-main {
    font-size: 1.25rem;
  }

  .logo-sub {
    font-size: 0.52rem;
    letter-spacing: 1px;
  }

  .auth-buttons .btn-reg {
    display: none;
  }

  .btn-login {
    padding: 6px 12px;
    font-size: 0.78rem;
  }

  .user-profile-badge {
    padding: 3px 8px;
    gap: 6px;
  }

  .user-info-text .user-name {
    display: none;
  }

  .user-balance {
    font-size: 0.72rem;
  }

  .btn-add-acc-nav,
  .btn-admin-pill {
    display: none !important;
  }

  /* Slider banner */
  .hero-grid {
    margin-top: 8px;
    gap: 12px;
  }

  .slider-box {
    padding: 16px 14px;
    border-radius: 12px;
    min-height: 180px;
  }

  .slide-title {
    font-size: 1.25rem;
    line-height: 1.3;
    margin: 6px 0;
  }

  .slide-desc {
    font-size: 0.78rem;
    line-height: 1.35;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .slide-ctas {
    display: flex;
    gap: 8px;
  }

  .slide-ctas .btn {
    flex: 1;
    padding: 9px 12px;
    font-size: 0.78rem;
    justify-content: center;
  }

  /* Topup form inputs: 16px font-size prevents iOS Safari zoom */
  .form-group-sm input,
  .form-group-sm select,
  .acc-search-input,
  .acc-sort-select {
    font-size: 16px !important;
  }

  .topup-card {
    border-radius: 12px;
  }

  .topup-tab-btn {
    padding: 10px 8px;
    font-size: 0.8rem;
  }

  /* Quick icons bar: swipeable horizontal ribbon */
  .quick-icons-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 10px;
    padding: 8px 4px;
    scrollbar-width: none;
  }

  .quick-icons-grid::-webkit-scrollbar {
    display: none;
  }

  .quick-item {
    flex: 0 0 86px;
    min-width: 86px;
    padding: 8px 4px;
    border-radius: 10px;
  }

  .icon-avatar {
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
    margin: 0 auto 5px;
  }

  .quick-label {
    font-size: 0.65rem;
    line-height: 1.2;
  }

  /* Flash sale */
  .flash-sale-wrapper {
    padding: 12px 14px;
    gap: 10px;
  }

  .flash-title-area h3 {
    font-size: 1.05rem;
  }

  /* Filter Ribbons: Swiping horizontal thumb-friendly bars */
  .game-filter-bar,
  .sub-filter-row {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 8px;
    padding: 4px 2px 10px;
    white-space: nowrap;
  }

  .game-filter-bar::-webkit-scrollbar,
  .sub-filter-row::-webkit-scrollbar {
    display: none;
  }

  .game-pill,
  .sub-pill {
    flex-shrink: 0;
    padding: 7px 14px;
    font-size: 0.78rem;
  }

  /* 2-Column Account Cards Grid for Phones */
  .acc-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px;
  }

  .acc-card {
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  }

  .acc-thumb-wrap {
    height: 120px;
  }

  .acc-ms-badge {
    top: 6px;
    left: 6px;
    font-size: 0.65rem;
    padding: 2px 5px;
    border-radius: 4px;
  }

  .acc-discount-badge {
    top: 6px;
    right: 6px;
    font-size: 0.62rem;
    padding: 2px 5px;
    border-radius: 4px;
  }

  .acc-game-badge {
    bottom: 6px;
    left: 6px;
    font-size: 0.6rem;
    padding: 2px 6px;
  }

  .acc-body {
    padding: 8px;
  }

  .acc-title {
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 6px;
    min-height: 2.5em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .acc-specs-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3px;
    padding: 5px 6px;
    font-size: 0.68rem;
    margin-bottom: 6px;
    border-radius: 6px;
  }

  .spec-key {
    font-size: 0.66rem;
  }

  .spec-val {
    font-size: 0.68rem;
    max-width: 58%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: right;
  }

  .acc-card-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding-top: 6px;
  }

  .acc-price-box {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
  }

  .acc-price-current {
    font-size: 0.98rem;
  }

  .acc-price-old {
    font-size: 0.68rem;
  }

  .acc-actions {
    width: 100%;
    display: flex;
    gap: 4px;
  }

  .btn-acc-detail {
    display: none;
  }

  .btn-acc-buy {
    flex: 1;
    text-align: center;
    padding: 8px 10px;
    font-size: 0.78rem;
    font-weight: 800;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
  }

  /* Services Grid (Godhuman, V4, etc.) */
  .shop-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px;
  }

  .card-thumb {
    height: 115px;
  }

  .card-body {
    padding: 8px;
  }

  .card-title {
    font-size: 0.8rem;
    min-height: 2.4em;
    margin-bottom: 6px;
  }

  .card-price {
    font-size: 0.95rem;
  }

  .btn-buy {
    padding: 8px 6px;
    font-size: 0.78rem;
  }

  /* Modals: Convert to Native-Feeling Mobile Bottom Sheets */
  .modal-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .modal-card,
  .modal-card.modal-lg-card {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 22px 22px 0 0 !important;
    max-height: 90vh;
    margin: 0;
    transform: translateY(100%);
    transition: transform 0.32s cubic-bezier(0.33, 1, 0.68, 1);
  }

  .modal-overlay.open .modal-card {
    transform: translateY(0);
  }

  .modal-header-red {
    padding: 12px 18px 10px;
    position: relative;
  }

  .modal-header-red::before {
    content: '';
    display: block;
    width: 36px;
    height: 4px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    margin: 0 auto 8px;
  }

  .modal-header-red h3 {
    font-size: 0.92rem;
  }

  .modal-close-btn {
    top: 8px;
    right: 12px;
    font-size: 1.7rem;
  }

  .modal-body-pad {
    padding: 14px 16px 24px;
    max-height: calc(90vh - 60px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .acc-detail-modal-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* Floating Support Button Speed-dial */
  .floating-widget {
    bottom: 74px;
    right: 12px;
    gap: 8px;
  }

  .float-btn-toggle {
    display: flex;
  }

  .float-items-group {
    display: none;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
    margin-bottom: 2px;
  }

  .floating-widget.expanded .float-items-group {
    display: flex;
    animation: slideUpFade 0.22s ease-out;
  }

  .floating-widget.expanded .float-btn-toggle {
    background: #475569;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    animation: none;
  }

  .float-btn {
    padding: 8px;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    justify-content: center;
  }

  .float-text {
    display: none;
  }

  .float-btn i {
    font-size: 1.35rem;
  }

  /* Live sales toast safe position */
  .live-sales-toast {
    bottom: 74px;
    left: 10px;
    right: 10px;
    max-width: 300px;
    padding: 8px 12px;
  }

  /* Warning popup */
  .popup-notify {
    top: 58px;
    left: 10px;
    right: 10px;
    max-width: none;
    padding: 10px 14px;
    font-size: 0.8rem;
  }

  /* Touch micro-interaction */
  button:active,
  .btn:active,
  .game-pill:active,
  .sub-pill:active,
  .acc-card:active {
    transform: scale(0.97);
  }
}

@media (max-width: 360px) {
  .acc-grid {
    grid-template-columns: 1fr !important;
  }

  .acc-thumb-wrap {
    height: 160px;
  }

  .acc-title {
    font-size: 0.88rem;
  }
}


