/* ==========================================================================
   ATF TELEGRAM MINI-APP REALISTIC 100% THEME & CANVAS
   ========================================================================== */

.miniapp-screen-wrapper {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  min-height: 820px;
  background: #000000;
  background-image: 
    radial-gradient(circle at 50% 10%, rgba(255, 170, 0, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(255, 170, 0, 0.18) 0%, transparent 60%),
    linear-gradient(180deg, #050508 0%, #0c0a06 50%, #000000 100%);
  border: 1px solid rgba(255, 187, 0, 0.25);
  border-radius: 28px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(255, 170, 0, 0.15);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px 14px 10px 14px;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  user-select: none;
}

/* Candlestick & World Map Background Overlay */
.miniapp-screen-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle, rgba(255, 204, 0, 0.08) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.35;
  pointer-events: none;
}

/* 1. TOP HEADER */
.miniapp-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 10;
  margin-bottom: 6px;
}

.miniapp-user-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.miniapp-user-name {
  font-size: 15px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.2px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.miniapp-badges-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.badge-lvl {
  background: #ffffff;
  color: #000000;
  font-size: 11px;
  font-weight: 900;
  padding: 2px 10px;
  border-radius: 12px;
}

.badge-ready {
  background: #0a101d;
  color: #00ff88;
  border: 1px solid rgba(0, 255, 136, 0.3);
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.ready-dot {
  width: 5px;
  height: 5px;
  background: #00ff88;
  border-radius: 50%;
  box-shadow: 0 0 6px #00ff88;
}

.badge-lvl-cost {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  margin-top: 4px;
  width: fit-content;
}

.btn-connect-wallet {
  background: #0088cc;
  color: #ffffff;
  border: none;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 136, 204, 0.4);
  transition: all 0.2s;
}

.btn-connect-wallet:hover {
  background: #0099e6;
  transform: scale(1.02);
}

/* 2. ASSETS & WALLET PILLS */
.miniapp-assets-center {
  text-align: center;
  position: relative;
  z-index: 10;
  margin: 8px 0;
}

.assets-label {
  font-size: 11px;
  font-weight: 700;
  color: #8899a6;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.assets-big-value {
  font-size: 26px;
  font-weight: 900;
  color: #ffffff;
  margin: 2px 0 6px 0;
  letter-spacing: 0.5px;
}

.assets-big-value span {
  color: #ffcc00;
}

.wallet-pills-row {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.wallet-pill {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 204, 0, 0.35);
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 10.5px;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 4px;
}

.wallet-pill span {
  color: #ffcc00;
}

/* 3. NEON GREEN FLOATING RATE */
.tap-rate-banner {
  text-align: center;
  font-size: 32px;
  font-weight: 900;
  color: #00ffaa;
  text-shadow: 0 0 20px rgba(0, 255, 170, 0.9), 0 0 35px rgba(0, 255, 170, 0.6);
  letter-spacing: 1px;
  margin: 4px 0;
  position: relative;
  z-index: 10;
  animation: rateGlow 2s infinite alternate;
}

@keyframes rateGlow {
  0% { transform: scale(0.98); opacity: 0.9; }
  100% { transform: scale(1.02); opacity: 1; }
}

/* 4. ICONIC 3D GOLD ATF COIN (CHUẨN ẢNH 100%) */
.atf-coin-stage {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 10;
  margin: 12px 0;
}

.atf-3d-coin {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff2a3 0%, #ffd000 25%, #e6a800 50%, #b37400 85%, #663d00 100%);
  box-shadow: 
    0 0 60px rgba(255, 187, 0, 0.6),
    0 15px 35px rgba(0, 0, 0, 0.9),
    inset 0 3px 6px rgba(255, 255, 255, 0.8),
    inset 0 -6px 12px rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
  transition: all 0.12s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.atf-3d-coin:active {
  transform: scale(0.92);
  box-shadow: 
    0 0 80px rgba(255, 187, 0, 0.9),
    0 8px 20px rgba(0, 0, 0, 0.9),
    inset 0 4px 10px rgba(255, 255, 255, 0.9),
    inset 0 -8px 16px rgba(0, 0, 0, 0.9);
}

/* Outer Ribbed Border Ring */
.atf-coin-rim {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 4px dashed rgba(255, 230, 100, 0.7);
  box-shadow: inset 0 0 10px rgba(0,0,0,0.5), 0 0 10px rgba(0,0,0,0.5);
  pointer-events: none;
}

/* Inner Textured Core */
.atf-coin-inner {
  width: 176px;
  height: 176px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffd943 0%, #e6a800 45%, #995c00 100%);
  border: 3px solid rgba(255, 240, 150, 0.6);
  box-shadow: inset 0 3px 10px rgba(255, 255, 255, 0.6), inset 0 -4px 10px rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Embossed 3D ATF Text */
.atf-coin-text {
  font-size: 58px;
  font-weight: 900;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: #2b1d03;
  letter-spacing: 2px;
  text-shadow: 
    0 1px 0 #ffd943,
    0 -1px 0 #1a0f00,
    1px 2px 2px rgba(0,0,0,0.9),
    -1px -1px 1px rgba(255,255,255,0.4);
  background: linear-gradient(180deg, #4d3305 0%, #2b1d03 70%, #170d00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 3px rgba(255, 220, 80, 0.5));
}

/* 5. QUESTION / HELP BUTTON */
.btn-help-float {
  position: absolute;
  left: 16px;
  bottom: 84px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(20, 20, 25, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
  z-index: 20;
  box-shadow: 0 4px 15px rgba(0,0,0,0.6);
}

/* 6. BIG YELLOW CLAIM BUTTON */
.miniapp-claim-podium {
  position: relative;
  z-index: 15;
  margin: 10px 0 8px 0;
  display: flex;
  justify-content: center;
}

.btn-big-claim-yellow {
  width: 100%;
  background: linear-gradient(180deg, #ffcc00 0%, #ff9900 100%);
  color: #000000;
  border: none;
  padding: 15px 24px;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 1.5px;
  cursor: pointer;
  box-shadow: 
    0 8px 25px rgba(255, 170, 0, 0.5),
    inset 0 2px 4px rgba(255, 255, 255, 0.6);
  transition: all 0.15s;
  text-transform: uppercase;
  text-align: center;
}

.btn-big-claim-yellow:hover {
  filter: brightness(1.08);
}

.btn-big-claim-yellow:active {
  transform: scale(0.97);
  box-shadow: 0 4px 15px rgba(255, 170, 0, 0.4);
}

/* 7. BOTTOM NAVIGATION BAR (5 TABS) */
.miniapp-bottom-nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: rgba(10, 12, 18, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 8px 6px;
  position: relative;
  z-index: 20;
}

.miniapp-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: #8899a6;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  flex: 1;
  text-align: center;
}

.miniapp-nav-item i {
  font-size: 16px;
}

.miniapp-nav-item.active {
  color: #ffcc00;
}

.miniapp-nav-item.badge-active {
  color: #00ff88;
}

.miniapp-nav-item.badge-active .miners-icon-badge {
  background: rgba(0, 255, 136, 0.15);
  border: 1px solid rgba(0, 255, 136, 0.4);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00ff88;
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.4);
}
