/* ═══════════════════════════════════════════════════════
   FCFVA Global Wallet Styles v1.0
   Nav badge, profile wallet, tipping modal
   ═══════════════════════════════════════════════════════ */

/* ── Nav Wallet Badge ── */
#fcfva-wallet-badge {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.75rem;
  color: #00d4ff;
  font-weight: 500;
  white-space: nowrap;
}

#fcfva-wallet-badge:hover {
  background: rgba(0, 212, 255, 0.15);
  border-color: rgba(0, 212, 255, 0.3);
}

/* ── Profile Wallet Badge ── */
.dd-profile-wallet {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(0, 212, 255, 0.06);
  border: 1px solid rgba(0, 212, 255, 0.1);
  border-radius: 20px;
  font-size: 0.78rem;
  color: #00d4ff;
  font-family: 'Inter', monospace;
  margin: 4px auto 0;
}

.wallet-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2ecc71;
  box-shadow: 0 0 6px rgba(46, 204, 113, 0.5);
  flex-shrink: 0;
}

/* ── Profile Balances ── */
.dd-profile-balances {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 8px;
}

.profile-bal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 16px;
  background: var(--social-input, #111124);
  border: 1px solid var(--social-border, rgba(0, 212, 255, 0.06));
  border-radius: 12px;
  min-width: 80px;
}

.bal-label {
  font-size: 0.65rem;
  color: var(--social-text-dim, #5a5a70);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bal-value {
  font-size: 0.9rem;
  font-weight: 700;
  font-family: 'Orbitron', sans-serif;
}

.bal-value.fcfva { color: #00d4ff; }
.bal-value.bgy { color: #9b59f0; }

/* ── Tip Button in Activity ── */
.dd-tip-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  padding: 6px 12px !important;
  background: transparent !important;
  border: 1px solid rgba(243, 156, 18, 0.2) !important;
  border-radius: 20px !important;
  color: var(--social-text-dim, #5a5a70) !important;
  font-size: 0.78rem !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: all 0.15s !important;
  font-family: 'Inter', sans-serif !important;
}

.dd-tip-btn:hover {
  color: #f39c12 !important;
  border-color: #f39c12 !important;
  background: rgba(243, 156, 18, 0.06) !important;
}

/* ── Tip Modal ── */
#fcfva-tip-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.tip-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.tip-box {
  position: relative;
  width: 100%;
  max-width: 360px;
  background: var(--social-card, #0e0e1e);
  border: 1px solid var(--social-border, rgba(0, 212, 255, 0.06));
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.tip-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.tip-header span {
  font-weight: 600;
  font-size: 1rem;
  color: var(--social-text-bright, #f0f0fa);
}

.tip-header button {
  background: none;
  border: none;
  color: var(--social-text-dim, #5a5a70);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

/* Token selector */
.tip-tokens {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.tip-tok {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--social-border, rgba(0, 212, 255, 0.06));
  background: var(--social-input, #111124);
  color: var(--social-text-dim, #5a5a70);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s;
}

.tip-tok.active {
  border-color: var(--social-accent, #00d4ff);
  color: var(--social-text-bright, #f0f0fa);
  background: rgba(0, 212, 255, 0.08);
}

.tip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.tip-dot.fcfva { background: #00d4ff; }
.tip-dot.bgy { background: #9b59f0; }

/* Preset amounts */
.tip-amounts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}

.tip-amt {
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--social-border, rgba(0, 212, 255, 0.06));
  background: var(--social-input, #111124);
  color: var(--social-text, #d0d0e0);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.tip-amt:hover,
.tip-amt.active {
  border-color: #f39c12;
  color: #f39c12;
  background: rgba(243, 156, 18, 0.08);
}

/* Custom input */
.tip-input {
  width: 100%;
  padding: 12px 14px;
  background: var(--social-input, #111124);
  border: 1px solid var(--social-border, rgba(0, 212, 255, 0.06));
  border-radius: 10px;
  color: var(--social-text-bright, #f0f0fa);
  font-size: 0.92rem;
  font-family: 'Inter', sans-serif;
  margin-bottom: 16px;
  box-sizing: border-box;
}

.tip-input:focus {
  outline: none;
  border-color: #f39c12;
}

.tip-input::placeholder {
  color: var(--social-text-dim, #5a5a70);
}

/* Send button */
.tip-send {
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #f39c12, #e67e22);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.tip-send:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(243, 156, 18, 0.3);
}

.tip-send:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ── Profile Wallet Actions (own profile) ── */
.dd-profile-wallet-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  width: 100%;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* Earnings chips */
.dd-earnings-summary {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.dd-earning-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 14px;
  background: var(--social-input, #111124);
  border: 1px solid var(--social-border, rgba(0, 212, 255, 0.06));
  border-radius: 12px;
  min-width: 90px;
}

.dd-earning-chip .earning-token {
  font-size: 0.65rem;
  color: var(--social-text-dim, #5a5a70);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dd-earning-chip .earning-amount {
  font-size: 0.95rem;
  font-weight: 700;
  font-family: 'Orbitron', sans-serif;
  color: var(--social-accent, #00d4ff);
}

.dd-earning-chip .earning-plays {
  font-size: 0.65rem;
  color: var(--social-text-dim, #5a5a70);
}

/* Wallet links row */
.dd-wallet-links {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.dd-wallet-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 14px;
  background: var(--social-input, #111124);
  border: 1px solid var(--social-border, rgba(0, 212, 255, 0.06));
  border-radius: 20px;
  color: var(--social-text-dim, #5a5a70);
  font-size: 0.75rem;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s;
}

.dd-wallet-link:hover {
  color: var(--social-accent, #00d4ff);
  border-color: var(--social-accent, #00d4ff);
}

.dd-wallet-link.connect {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(155, 89, 240, 0.1));
  border-color: rgba(0, 212, 255, 0.2);
  color: var(--social-accent, #00d4ff);
}

.dd-wallet-link.connect:hover {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(155, 89, 240, 0.2));
}

@media (max-width: 480px) {
  .dd-wallet-links {
    gap: 4px;
  }
  .dd-wallet-link {
    font-size: 0.7rem;
    padding: 6px 10px;
  }
}

/* ── Toast notification ── */
.fcfva-tip-toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  z-index: 100001;
  opacity: 0;
  transition: all 0.3s;
  white-space: nowrap;
}

.fcfva-tip-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.fcfva-tip-toast.success {
  background: rgba(46, 204, 113, 0.9);
  color: #fff;
}

.fcfva-tip-toast.error {
  background: rgba(233, 69, 96, 0.9);
  color: #fff;
}


/* Help link in nav */
.fcfva-topbar-help {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--social-input, #111124);
  border: 1px solid var(--social-border, rgba(0,212,255,0.06));
  color: var(--social-text-dim, #5a5a70);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s;
}
.fcfva-topbar-help:hover {
  color: var(--social-accent, #00d4ff);
  border-color: var(--social-accent, #00d4ff);
}
