.barrel-icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(249, 115, 22, 0.4));
}

.barrel-icon--sm { width: 20px; height: 20px; }
.barrel-icon--md { width: 28px; height: 28px; }
.barrel-icon--lg { width: 44px; height: 44px; }
.barrel-icon--xl { width: 64px; height: 64px; }

.barrel-icon--hero {
  width: min(280px, 70vw);
  height: auto;
  max-height: 320px;
  filter: drop-shadow(0 12px 40px rgba(245, 197, 66, 0.35));
  animation: ce-float 6s ease-in-out infinite;
}

.barrel-amount {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--dash-mono, 'IBM Plex Mono', monospace);
  font-weight: 600;
  color: #f97316;
}

.barrel-num { color: #fbbf24; }

.barrel-amount--lg {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
}

.barrel-amount--lg .barrel-num {
  font-size: 1.35rem;
}

.barrel-amount--lg .barrel-icon--sm {
  width: 28px;
  height: 28px;
}

/* Balance toggle */
.balance-toggle {
  position: relative;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(245, 197, 66, 0.2);
  border-radius: 14px;
  padding: 0.75rem 1rem 0.7rem;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s, box-shadow 0.2s;
  width: 100%;
  color: inherit;
  overflow: hidden;
}

.balance-toggle::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.08) 0%, transparent 55%);
  opacity: 1;
  pointer-events: none;
  transition: opacity 0.2s;
}

.balance-toggle.is-usd {
  border-color: rgba(52, 211, 153, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 0 0 1px rgba(52, 211, 153, 0.06);
}

.balance-toggle.is-usd::before {
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.14) 0%, rgba(16, 185, 129, 0.04) 45%, transparent 70%);
}

.balance-toggle:hover {
  border-color: rgba(249, 115, 22, 0.45);
  background: rgba(249, 115, 22, 0.08);
  transform: translateY(-1px);
}

.balance-toggle.is-usd:hover {
  border-color: rgba(52, 211, 153, 0.55);
  background: rgba(52, 211, 153, 0.1);
}

.balance-toggle-label {
  position: relative;
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8b9cb8;
  margin-bottom: 0.35rem;
  padding-right: 4rem;
}

.balance-toggle.is-usd .balance-toggle-label {
  color: #a7f3d0;
}

.balance-toggle-mode {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
  line-height: 1.2;
}

.balance-toggle-mode--barrels {
  color: #fbbf24;
  background: rgba(245, 197, 66, 0.12);
  border: 1px solid rgba(245, 197, 66, 0.25);
}

.balance-toggle-mode--usd {
  display: none;
  color: #6ee7b7;
  background: rgba(52, 211, 153, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.balance-toggle.is-usd .balance-toggle-mode--barrels {
  display: none;
}

.balance-toggle.is-usd .balance-toggle-mode--usd {
  display: inline-block;
}

.balance-toggle-value {
  position: relative;
  display: block;
  font-size: 1.1rem;
  min-height: 1.5rem;
}

.balance-toggle-hint {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.5rem;
  padding: 0.32rem 0.65rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: #f5c542;
  background: rgba(245, 197, 66, 0.14);
  border: 1px solid rgba(245, 197, 66, 0.4);
  box-shadow: 0 0 14px rgba(245, 197, 66, 0.12);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.balance-toggle-hint::before {
  content: '↔';
  font-size: 0.85rem;
  font-weight: 800;
  opacity: 0.95;
}

.balance-toggle:hover .balance-toggle-hint {
  background: rgba(245, 197, 66, 0.22);
  border-color: rgba(245, 197, 66, 0.55);
  box-shadow: 0 0 18px rgba(245, 197, 66, 0.2);
}

.balance-toggle.is-usd .balance-toggle-hint {
  color: #6ee7b7;
  background: rgba(52, 211, 153, 0.14);
  border-color: rgba(52, 211, 153, 0.4);
  box-shadow: 0 0 14px rgba(52, 211, 153, 0.12);
  opacity: 1;
}

.balance-toggle.is-usd:hover .balance-toggle-hint {
  background: rgba(52, 211, 153, 0.22);
  border-color: rgba(52, 211, 153, 0.55);
  box-shadow: 0 0 18px rgba(52, 211, 153, 0.18);
}

.balance-usd-amount {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.05rem 0.2rem;
  font-family: var(--dash-mono, 'IBM Plex Mono', monospace);
  line-height: 1.15;
}

.balance-usd-symbol {
  font-size: 1.05rem;
  font-weight: 700;
  color: #34d399;
  margin-right: 0.05rem;
}

.balance-usd-num {
  font-size: 1.45rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.balance-usd-dec {
  font-size: 0.92rem;
  font-weight: 600;
  color: #94a3b8;
}

.balance-usd-code {
  margin-left: 0.25rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6ee7b7;
  padding: 0.2rem 0.42rem;
  border-radius: 6px;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.28);
  transform: translateY(-0.08rem);
}

.dash-balance-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  min-width: 0;
}

.dash-balance-bar .balance-toggle {
  min-width: 0;
}

.dash-rate-pill-wrap {
  grid-column: 1 / -1;
}

.dash-rate-pill {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.7rem 1rem;
  text-align: left;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.1) 0%, rgba(245, 197, 66, 0.06) 100%);
  border-radius: 14px;
  border: 1px solid rgba(245, 197, 66, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.dash-rate-pill-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(245, 197, 66, 0.18);
}

.dash-rate-pill-icon .barrel-icon {
  filter: drop-shadow(0 2px 6px rgba(249, 115, 22, 0.35));
}

.dash-rate-pill-body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.dash-rate-pill-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dash-gold, #f5c542);
}

.dash-rate-pill-rate {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.3rem 0.4rem;
  font-size: 0.92rem;
  color: #e2e8f0;
  line-height: 1.3;
}

.dash-rate-pill-barrels,
.dash-rate-pill-usd {
  font-family: var(--dash-mono, ui-monospace, monospace);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

.dash-rate-pill-usd {
  color: var(--dash-success, #34d399);
}

.dash-rate-pill-unit,
.dash-rate-pill-fiat {
  font-size: 0.78rem;
  font-weight: 600;
  color: #94a3b8;
}

.dash-rate-pill-arrow {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dash-gold, #f5c542);
  margin: 0 0.1rem;
}

.dash-rate-pill-hint {
  font-size: 0.72rem;
  color: #64748b;
  line-height: 1.35;
}

@media (max-width: 480px) {
  .dash-rate-pill-hint {
    display: none;
  }

  .dash-rate-pill-rate {
    font-size: 0.85rem;
  }

  .dash-rate-pill-barrels,
  .dash-rate-pill-usd {
    font-size: 0.95rem;
  }
}

.ptc-payout .barrel-amount { font-size: 1.15rem; }

.vp-landing .barrel-amount .barrel-num { color: #fbbf24; }
.vp-landing .dash-rate-pill-label { color: #fbbf24; }
.vp-landing .dash-rate-pill-hint { color: #64748b; }

.vp-bonus-amount .barrel-amount {
  justify-content: center;
  font-size: 1.5rem;
}

.vp-bonus-amount .barrel-icon--sm {
  width: 32px;
  height: 32px;
}

@keyframes ce-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-12px) scale(1.02); }
}
