/* =========================================================
   PBx1 ELITE - ARENA STYLING (PERFECT SYMMETRY & CLEAN PROPORTIONS)
========================================================= */

.home-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

/* 1. FIXED TOP HERO DECK */
.fixed-top-deck {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
  padding-bottom: 2px;
  width: 100%;
}

/* Banner Carousel */
.banner-carousel-wrap {
  position: relative;
  width: 100%;
  height: 126px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.75);
  background: var(--card-bg);
}

.carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
}

.banner-clickable-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  cursor: pointer;
}

.banner-img-node {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.banner-fallback-card {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: radial-gradient(circle at 80% 50%, rgba(255, 215, 0, 0.18) 0%, #120d24 80%);
  color: #fff;
}

.banner-fallback-card.alt-banner {
  background: radial-gradient(circle at 80% 50%, rgba(0, 192, 109, 0.18) 0%, #0d1624 80%);
}

.bfc-badge {
  font-size: 10px;
  font-weight: 900;
  color: var(--accent-gold);
  letter-spacing: 0.5px;
}

.bfc-title {
  font-size: 14px;
  font-weight: 900;
  color: #ffffff;
  margin: 2px 0;
  letter-spacing: 0.4px;
}

.bfc-desc {
  font-size: 10.5px;
  color: var(--text-muted);
  font-weight: 700;
}

.bfc-icon {
  font-size: 34px;
  color: var(--accent-gold);
  filter: drop-shadow(0 0 10px var(--accent-gold-glow));
}

.carousel-dots {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 5;
}

.c-dot {
  width: 5px;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.35);
  transition: all 0.25s ease;
}

.c-dot.active {
  width: 16px;
  background: var(--accent-gold);
  box-shadow: 0 0 6px var(--accent-gold-glow);
}

/* 2. Symmetrical 2x2 Proportional Action Grid */
.wallet-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
}

.btn-wallet-action {
  border-radius: 14px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
  transition: transform 0.12s ease;
  height: 52px;
}

.btn-wallet-action:active {
  transform: scale(0.97);
}

/* 1. Deposit Button */
.btn-wallet-action.deposit-btn {
  background: linear-gradient(135deg, #e65100 0%, #ff6d00 100%);
  border: 1px solid rgba(255, 109, 0, 0.5);
}

/* 2. Withdraw Button */
.btn-wallet-action.withdraw-btn {
  background: linear-gradient(135deg, #008947 0%, #00c06d 100%);
  border: 1px solid rgba(0, 192, 109, 0.5);
}

/* 3. Live Chat Support Button */
.btn-wallet-action.support-btn {
  background: linear-gradient(135deg, #1e153a 0%, #120c24 100%);
  border: 1px solid rgba(192, 132, 252, 0.35);
}

.btn-wallet-action.support-btn .bwa-icon-box {
  background: rgba(192, 132, 252, 0.18);
  color: #c084fc;
}

/* 4. Telegram Channel Button */
.btn-wallet-action.telegram-btn {
  background: linear-gradient(135deg, #0f2744 0%, #0c182b 100%);
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.btn-wallet-action.telegram-btn .bwa-icon-box {
  background: rgba(56, 189, 248, 0.18);
  color: #38bdf8;
}

.bwa-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 14px;
  flex-shrink: 0;
}

.bwa-texts {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.bwa-title {
  font-size: 12.5px;
  font-weight: 900;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.bwa-sub {
  font-size: 9.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 1px;
}

/* 3. SEPARATION DIVIDER LINE */
.market-deck-separator {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 215, 0, 0.35) 50%, transparent 100%);
  margin: 4px 0 2px 0;
  flex-shrink: 0;
}

/* 4. SCROLLABLE MARKET CARDS STREAM */
.scrollable-market-deck {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 5px;
  padding-bottom: 75px;
}

.market-card {
  background: #0e0a1b;
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.75);
}

.mc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mc-name {
  font-size: 14px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.mc-status-badge {
  font-size: 9.5px;
  font-weight: 900;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.status-open {
  background: rgba(0, 192, 109, 0.12);
  border: 1px solid #00c06d;
  color: #00c06d;
}

.status-closed {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid #ef4444;
  color: #ef4444;
}

.mc-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mc-results-wrap {
  display: flex;
  align-items: center;
  gap: 7px;
}

.res-box {
  background: #06040d;
  border: 1px solid rgba(255, 215, 0, 0.4);
  border-radius: 9px;
  padding: 5px 11px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 48px;
}

.res-val {
  font-size: 16px;
  font-weight: 900;
  color: var(--accent-gold);
  font-family: monospace;
}

.res-lbl {
  font-size: 8.5px;
  color: var(--text-muted);
  font-weight: 800;
  text-transform: uppercase;
}

.res-divider {
  color: var(--accent-gold);
  font-size: 14px;
  font-weight: 900;
}

.mc-actions-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-chart-gold {
  background: #16102b;
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  padding: 8px 14px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
  transition: all 0.15s ease;
}

.btn-chart-gold:active {
  background: rgba(255, 215, 0, 0.2);
}

.btn-play-market {
  background: #00c06d;
  color: #011f11;
  border: none;
  border-radius: 9px;
  padding: 9px 18px;
  font-size: 12.5px;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0, 192, 109, 0.4);
  transition: transform 0.1s ease;
  text-transform: uppercase;
}

.btn-play-market:active {
  transform: scale(0.96);
}

.btn-play-market:disabled {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #64748b;
  cursor: not-allowed;
  box-shadow: none;
}

.mc-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 5px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.time-pill {
  font-size: 10.5px;
  font-weight: 800;
  color: #8b9bb4;
  display: flex;
  align-items: center;
  gap: 5px;
}

.time-pill b {
  color: #ffffff;
  font-family: monospace;
}

.time-pill.open-time b {
  color: #38bdf8;
}

.time-pill.close-time b {
  color: var(--accent-gold);
}

.market-card.is-closed {
  border-color: rgba(239, 68, 68, 0.3);
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.03) 0%, #0e0a1b 100%);
}

.empty-state {
  text-align: center;
  padding: 40px 10px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}

/* =========================================================
   5. NON-OBSTRUCTIVE FLOATING REFRESH BUTTON
========================================================= */
.floating-refresh-btn {
  position: fixed;
  bottom: 74px;
  right: 14px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle, #eab308 0%, #ca8a04 100%);
  border: 2px solid #fef08a;
  color: #000000;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(234, 179, 8, 0.55), 0 2px 8px rgba(0, 0, 0, 0.8);
  cursor: pointer;
  z-index: 9998;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
  outline: none;
}

.floating-refresh-btn:active {
  transform: scale(0.9) rotate(180deg);
  box-shadow: 0 2px 10px rgba(234, 179, 8, 0.3);
}

.floating-refresh-btn i.spin-anim {
  animation: spinClockwise 0.6s linear infinite;
}

@keyframes spinClockwise {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
