/* =============================================
   POOKIE SMP — enhanced.css
   Banking · Animations · Graphs · Popups
   All new features, same UI theme
   ============================================= */

/* ============================================
   SCROLL PROGRESS BAR
   ============================================ */
.scroll-progress-bar {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--green), var(--blossom));
  z-index: 10000; transition: width 0.1s linear;
  box-shadow: 0 0 8px rgba(74,222,128,0.6);
}

/* ============================================
   NAVBAR ANIMATION
   ============================================ */
.nav-hidden {
  transform: translateY(-100%) !important;
}
#navbar {
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1), background 0.3s, box-shadow 0.3s !important;
}
.nav-pop {
  animation: navPop 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes navPop {
  from { transform: translateY(-20%); opacity: 0.5; }
  to { transform: translateY(0); opacity: 1; }
}

/* Nav right + cart */
.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-cart-btn {
  position: relative; background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-soft); padding: 8px 10px; border-radius: var(--r);
  cursor: pointer; display: flex; align-items: center; transition: all 0.2s;
}
.nav-cart-btn:hover { border-color: var(--green); color: var(--green); }
.cart-badge {
  position: absolute; top: -6px; right: -6px; background: var(--blossom);
  color: white; border-radius: 50%; width: 18px; height: 18px; font-size: 10px;
  font-weight: 800; align-items: center; justify-content: center; font-family: 'Nunito', sans-serif;
}
.bank-nav-link { color: var(--gold) !important; }
.bank-nav-link:hover { color: var(--gold-dim) !important; }

/* ============================================
   SCROLL POPUP ANNOUNCEMENT
   ============================================ */
.scroll-announce {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 8000;
  background: var(--bg-card); border: 1px solid var(--border-glow);
  border-radius: var(--r-lg); padding: 16px 20px; display: flex; align-items: center;
  gap: 14px; max-width: 320px; box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 20px rgba(74,222,128,0.05);
  transform: translateX(140%); transition: transform 0.5s cubic-bezier(0.34,1.56,0.64,1);
  pointer-events: none;
}
.scroll-announce.show { transform: translateX(0); pointer-events: auto; }
.sa-icon { font-size: 28px; flex-shrink: 0; }
.sa-content .sa-title { font-weight: 800; color: var(--text); font-size: 14px; margin-bottom: 2px; }
.sa-content .sa-sub { font-size: 12px; color: var(--text-muted); }
.sa-close {
  background: none; border: none; color: var(--text-muted); cursor: pointer;
  font-size: 18px; line-height: 1; flex-shrink: 0; padding: 2px; margin-left: auto;
}
.sa-close:hover { color: var(--text); }

/* ============================================
   CART MODAL
   ============================================ */
.cart-modal-box { max-height: 85vh; display: flex; flex-direction: column; min-width: 360px; }
.cart-list { flex: 1; overflow-y: auto; margin: 16px 0; max-height: 350px; }
.cart-empty { text-align: center; padding: 40px 20px; color: var(--text-muted); font-size: 14px; }
.cart-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0; border-bottom: 1px solid var(--border);
}
.ci-info { display: flex; flex-direction: column; gap: 2px; }
.ci-name { font-weight: 700; font-size: 14px; color: var(--text); }
.ci-type { font-size: 11px; color: var(--text-muted); }
.ci-right { display: flex; align-items: center; gap: 10px; }
.ci-price { color: var(--green); font-weight: 700; font-size: 14px; }
.ci-remove { background: none; border: 1px solid var(--border); color: var(--text-muted); width: 24px; height: 24px; border-radius: 50%; cursor: pointer; font-size: 16px; display: flex; align-items: center; justify-content: center; line-height: 1; }
.ci-remove:hover { border-color: #f87171; color: #f87171; }
.cart-footer { border-top: 1px solid var(--border); padding-top: 16px; }
.cart-total-row { display: flex; justify-content: space-between; font-weight: 800; font-size: 16px; margin-bottom: 14px; }
.cart-total-row span:last-child { color: var(--green); }

/* ============================================
   BANK MODAL
   ============================================ */
.bank-modal-box { min-width: 400px; max-width: 500px; max-height: 90vh; overflow-y: auto; }
.bank-modal-header { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.bank-modal-icon { font-size: 36px; }
.bank-stats-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.bank-stat {
  background: var(--bg-mid); border: 1px solid var(--border); border-radius: var(--r);
  padding: 14px; text-align: center;
}
.bs-label { font-size: 11px; color: var(--text-muted); margin-bottom: 4px; }
.bs-val { font-size: 22px; font-weight: 800; color: var(--green); }
.bank-actions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.bank-action-card { background: var(--bg-mid); border: 1px solid var(--border); border-radius: var(--r); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.bac-label { font-size: 11px; color: var(--text-muted); font-weight: 600; }
.bank-input {
  background: var(--bg-deep); border: 1px solid var(--border); color: var(--text);
  padding: 10px 12px; border-radius: var(--r); font-size: 14px; font-family: inherit;
  width: 100%; transition: border-color 0.2s; outline: none;
}
.bank-input:focus { border-color: var(--green); }
.bank-free-section { text-align: center; margin-bottom: 16px; }
.free-coins-btn {
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  color: #0a0f0a; border: none; padding: 12px 24px; border-radius: var(--r);
  font-weight: 800; font-family: inherit; font-size: 14px; cursor: pointer;
  width: 100%; transition: all 0.2s var(--ease-bounce);
  box-shadow: 0 4px 20px rgba(251,191,36,0.3);
}
.free-coins-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 25px rgba(251,191,36,0.4); }
.free-coins-btn-sm {
  background: linear-gradient(135deg, var(--gold), var(--gold-dim));
  color: #0a0f0a; border: none; padding: 10px 16px; border-radius: var(--r);
  font-weight: 800; font-family: inherit; font-size: 13px; cursor: pointer;
  width: 100%; transition: all 0.2s; margin-top: 8px;
}
.free-coins-btn-sm:hover { transform: translateY(-1px); }
.tx-section { margin-top: 16px; }
.tx-title { font-weight: 700; font-size: 13px; color: var(--text-soft); margin-bottom: 10px; }
.transaction-list { max-height: 200px; overflow-y: auto; }
.full-list { max-height: none; }
.tx-empty { text-align: center; padding: 30px; color: var(--text-muted); font-size: 13px; }
.tx-row {
  display: flex; align-items: center; gap: 10px; padding: 8px 0;
  border-bottom: 1px solid var(--border); font-size: 13px;
}
.tx-icon {
  width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 12px; font-weight: 800; flex-shrink: 0;
}
.tx-icon.deposit { background: rgba(74,222,128,0.15); color: var(--green); }
.tx-icon.withdraw { background: rgba(248,113,113,0.15); color: #f87171; }
.tx-icon.interest { background: rgba(251,191,36,0.15); color: var(--gold); }
.tx-icon.reward { background: rgba(244,114,182,0.15); color: var(--blossom); }
.tx-info { flex: 1; }
.tx-desc { color: var(--text); font-weight: 600; font-size: 12px; }
.tx-date { color: var(--text-muted); font-size: 10px; margin-top: 2px; }
.tx-amount { font-weight: 800; font-size: 13px; flex-shrink: 0; }
.tx-amount.positive { color: var(--green); }
.tx-amount.negative { color: #f87171; }

/* ============================================
   GRAPH SECTION
   ============================================ */
.graph-section { padding: 60px 0 20px; }
.graph-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.graph-live-pill {
  display: flex; align-items: center; gap: 8px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 20px; padding: 8px 16px;
  font-size: 13px; font-weight: 700; color: var(--green);
}
.graph-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.graph-wrap { padding: 20px 20px 8px; }
.player-graph-canvas { width: 100%; height: 200px; display: block; }
.bank-graph-canvas { width: 100%; height: 180px; display: block; }
.graph-footer-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--border);
}
.gf-stat { padding: 14px 16px; text-align: center; border-right: 1px solid var(--border); }
.gf-stat:last-child { border-right: none; }
.gfs-label { font-size: 10px; color: var(--text-muted); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.06em; }
.gfs-val { font-size: 18px; font-weight: 800; color: var(--green); }
.player-bar-wrap { padding: 10px 20px 14px; display: flex; align-items: center; gap: 12px; }
.player-bar-track { flex: 1; height: 6px; background: var(--bg-mid); border-radius: 3px; overflow: hidden; }
.player-bar-fill { height: 100%; background: linear-gradient(90deg, var(--green), var(--blossom)); border-radius: 3px; transition: width 1s ease; }
.pbar-label { font-size: 11px; color: var(--text-muted); white-space: nowrap; }

/* ============================================
   ACTIVITY FEED
   ============================================ */
.activity-section { padding: 20px 0 60px; }
.activity-grid { display: grid; grid-template-columns: 1fr 340px; gap: 24px; }
@media (max-width: 768px) { .activity-grid { grid-template-columns: 1fr; } }
.activity-panel, .quick-bank-panel {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px;
}
.ap-header { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.activity-feed { display: flex; flex-direction: column; gap: 0; max-height: 300px; overflow-y: auto; }
.activity-item {
  padding: 8px 0; border-bottom: 1px solid var(--border);
  display: flex; gap: 10px; font-size: 13px; align-items: flex-start;
  transform: translateY(-8px); opacity: 0; animation: actIn 0.4s cubic-bezier(0.22,1,0.36,1) forwards;
}
.activity-item:last-child { border-bottom: none; }
.activity-item.entering { animation: none; transform: translateY(-8px); opacity: 0; }
@keyframes actIn { to { transform: translateY(0); opacity: 1; } }
.act-time { color: var(--text-muted); font-size: 10px; white-space: nowrap; padding-top: 2px; min-width: 50px; }
.act-text { color: var(--text-soft); line-height: 1.5; }
.act-text b { color: var(--green); }

/* Quick bank widget */
.qb-balance-display { text-align: center; padding: 20px 0 8px; }
.qb-label { font-size: 11px; color: var(--text-muted); margin-bottom: 4px; }
.qb-val { font-size: 36px; font-weight: 800; color: var(--gold); }
.qb-username { text-align: center; font-size: 12px; color: var(--text-muted); margin-bottom: 16px; }
.qb-username span { color: var(--green); font-weight: 700; }
.qb-actions { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.qb-rates { border-top: 1px solid var(--border); padding-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.qr-item { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-muted); }
.qr-val { font-weight: 700; color: var(--text); }
.qr-val.green { color: var(--green); }

/* ============================================
   STORE IMPROVEMENTS
   ============================================ */
.store-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.store-tab {
  background: var(--bg-card); border: 1px solid var(--border); color: var(--text-muted);
  padding: 8px 18px; border-radius: 20px; cursor: pointer; font-size: 13px;
  font-weight: 600; font-family: inherit; transition: all 0.2s;
}
.store-tab:hover { border-color: var(--green); color: var(--green); }
.store-tab.active { background: var(--green); color: #0a0f0a; border-color: var(--green); }

/* New badge variants */
.new-badge { background: var(--green); color: #0a0f0a; }
.pass-badge { background: var(--sky); color: #0a0f0a; }
.top-badge { background: linear-gradient(135deg, #64c8ff, #8a5ac8); color: white; }
.gold-badge { background: var(--gold); color: #0a0f0a; }

/* Product visual extras */
.product-visual.phoenix { background: radial-gradient(circle at center, rgba(255,120,60,0.12), transparent 70%); }
.product-visual.celestial { background: radial-gradient(circle at center, rgba(100,200,255,0.1), transparent 70%); }
.product-visual.event-pass { background: radial-gradient(circle at center, rgba(74,222,128,0.08), transparent 70%); }
.product-visual.builder-pass { background: radial-gradient(circle at center, rgba(251,191,36,0.1), transparent 70%); }
.product-visual.vip-pass { background: radial-gradient(circle at center, rgba(244,114,182,0.1), transparent 70%); }
.product-visual.pet-pass { background: radial-gradient(circle at center, rgba(74,222,128,0.08), transparent 70%); }

/* Coins customizer */
.coins-customizer-card {
  background: var(--bg-card); border: 1px solid var(--border-glow); border-radius: var(--r-lg);
  padding: 24px; display: flex; gap: 24px; align-items: flex-start;
  flex-wrap: wrap;
}
.cc-left { display: flex; align-items: center; gap: 16px; min-width: 220px; }
.cc-icon { font-size: 44px; }
.cc-left h3 { font-size: 17px; margin-bottom: 4px; }
.cc-left p { font-size: 12px; color: var(--text-muted); }
.cc-right { flex: 1; min-width: 260px; }
.cc-presets { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.coins-preset {
  background: var(--bg-mid); border: 1px solid var(--border); color: var(--text-muted);
  padding: 6px 14px; border-radius: 20px; cursor: pointer; font-size: 12px; font-weight: 700;
  font-family: inherit; transition: all 0.15s;
}
.coins-preset:hover, .coins-preset.active { background: rgba(251,191,36,0.15); border-color: var(--gold); color: var(--gold); }
.cc-custom-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.coins-input {
  background: var(--bg-deep); border: 1px solid var(--border); color: var(--text);
  padding: 10px 12px; border-radius: var(--r); font-size: 14px; font-family: inherit;
  width: 120px; transition: border-color 0.2s; outline: none;
}
.coins-input:focus { border-color: var(--gold); }
.cc-label { color: var(--text-muted); font-size: 13px; }
.cc-total { font-size: 20px; font-weight: 800; color: var(--green); min-width: 70px; }
.cc-note { margin-top: 10px; font-size: 11px; color: var(--text-muted); }

/* Leaderboard bump animation */
.lb-bump { animation: lbBump 0.5s cubic-bezier(0.34,1.56,0.64,1); }
@keyframes lbBump { 0%,100%{transform:scale(1)} 40%{transform:scale(1.4);color:var(--green)} }

/* ============================================
   BANK PAGE
   ============================================ */
.bank-hero { padding-bottom: 40px; }
.bank-page-section { padding: 40px 0 80px; }
.bank-overview-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px; }
@media (max-width: 900px) { .bank-overview-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .bank-overview-grid { grid-template-columns: 1fr; } }
.bank-overview-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 20px; text-align: center; transition: border-color 0.2s;
  position: relative; overflow: hidden;
}
.bank-overview-card.primary-card { border-color: rgba(251,191,36,0.3); background: rgba(251,191,36,0.04); }
.boc-label { font-size: 11px; color: var(--text-muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.06em; }
.boc-val { font-size: 28px; font-weight: 800; color: var(--gold); margin-bottom: 4px; }
.boc-sub { font-size: 11px; color: var(--text-muted); }
.boc-badge { display: inline-block; background: rgba(74,222,128,0.15); color: var(--green); font-size: 10px; font-weight: 700; padding: 3px 10px; border-radius: 20px; margin-top: 8px; }

.bank-action-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 24px; }
@media (max-width: 700px) { .bank-action-row { grid-template-columns: 1fr; } }
.bank-action-full { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px; }
.deposit-card { border-color: rgba(74,222,128,0.2); }
.withdraw-card { border-color: rgba(56,189,248,0.2); }
.bank-action-full h3 { font-size: 16px; margin-bottom: 6px; }
.bank-action-full p { font-size: 12px; color: var(--text-muted); margin-bottom: 16px; }
.ba-input-row { display: flex; gap: 10px; margin-bottom: 12px; }
.large-input { flex: 1; padding: 12px 14px; font-size: 15px; }
.ba-quick-btns { display: flex; gap: 8px; }
.ba-quick {
  background: var(--bg-mid); border: 1px solid var(--border); color: var(--text-muted);
  padding: 5px 12px; border-radius: var(--r); cursor: pointer; font-size: 12px; font-weight: 700;
  font-family: inherit; transition: all 0.15s;
}
.ba-quick:hover { border-color: var(--green); color: var(--green); }

.free-coins-banner {
  background: linear-gradient(135deg, rgba(251,191,36,0.08), rgba(251,191,36,0.03));
  border: 1px solid rgba(251,191,36,0.25); border-radius: var(--r-lg);
  padding: 24px; display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; margin-bottom: 32px;
}
.fcb-left { display: flex; align-items: center; gap: 16px; }
.fcb-icon { font-size: 48px; }
.fcb-left h3 { font-size: 18px; margin-bottom: 4px; }
.fcb-left p { font-size: 13px; color: var(--text-muted); max-width: 400px; }
.large-free-btn { padding: 14px 32px !important; font-size: 16px !important; white-space: nowrap; }

.bank-graph-section { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px; margin-bottom: 24px; }

.interest-calc { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px; margin-bottom: 24px; }
.interest-calc h3 { margin-bottom: 6px; }
.interest-calc > p { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }
.ic-row { display: flex; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.ic-input-group { display: flex; flex-direction: column; gap: 6px; }
.ic-input-group label { font-size: 11px; color: var(--text-muted); font-weight: 600; }
.ic-result { background: var(--bg-mid); border: 1px solid var(--border); border-radius: var(--r); padding: 16px 24px; text-align: center; }
.ic-res-label { font-size: 11px; color: var(--text-muted); margin-bottom: 4px; }
.ic-res-val { font-size: 28px; font-weight: 800; color: var(--gold); margin-bottom: 2px; }
.ic-res-gain { font-size: 13px; color: var(--green); font-weight: 700; }

.full-transaction-panel { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px; }
.ftp-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.ftp-header h3 { font-size: 17px; }
.ftp-clear { background: none; border: 1px solid var(--border); color: var(--text-muted); padding: 6px 14px; border-radius: var(--r); cursor: pointer; font-size: 12px; font-family: inherit; }
.ftp-clear:hover { border-color: #f87171; color: #f87171; }

/* ============================================
   GENERAL SCROLL REVEAL UPGRADES
   ============================================ */
.scroll-reveal {
  opacity: 0; transform: translateY(24px) scale(0.98);
  transition: opacity 0.55s cubic-bezier(0.22,1,0.36,1) var(--sd, 0s),
              transform 0.55s cubic-bezier(0.22,1,0.36,1) var(--sd, 0s);
}
.scroll-reveal.visible { opacity: 1; transform: translateY(0) scale(1); }

/* Feature card hover lift */
.feature-card {
  transition: transform 0.25s var(--ease-bounce), box-shadow 0.25s, border-color 0.25s !important;
}
.feature-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 16px 40px rgba(0,0,0,0.4), 0 0 30px rgba(74,222,128,0.08) !important;
}

/* Product card hover scale */
.product-card {
  transition: transform 0.25s var(--ease-bounce), box-shadow 0.25s, border-color 0.25s !important;
}
.product-card:hover {
  transform: translateY(-6px) scale(1.01) !important;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4) !important;
}

/* Vote panel hover */
.vote-panel { transition: border-color 0.2s, transform 0.2s !important; }
.vote-panel:hover { border-color: var(--border-glow) !important; transform: translateY(-3px) !important; }

/* Hall card hover */
.hall-card { transition: transform 0.2s var(--ease-bounce), border-color 0.2s !important; }
.hall-card:hover { transform: translateY(-4px) !important; }

/* Timeline item reveal */
.tl-item { transition: opacity 0.4s, transform 0.4s; }

/* Pulsing stat numbers */
@keyframes statPulse { 0%,100%{text-shadow:0 0 0 transparent} 50%{text-shadow:0 0 15px rgba(74,222,128,0.5)} }

/* ============================================
   MISC
   ============================================ */
.btn-ghost.full { width: 100%; justify-content: center; }

/* Responsive navbar mobile fix */
@media (max-width: 900px) {
  .nav-right { display: none; }
}
