/* wall3t.css — $YMMUDE gamification widget — fixed floating panel */

/* Toggle button (always visible) */
#wall3t-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10001;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(99,102,241,0.5);
    letter-spacing: 0.3px;
    transition: transform 0.15s;
}
#wall3t-toggle:hover { transform: scale(1.05); }

/* Main widget panel */
.wall3t-widget {
    position: fixed;
    bottom: 60px;
    right: 20px;
    z-index: 10000;
    background: #0f0f14;
    border: 1px solid #2a2a3a;
    border-radius: 12px;
    padding: 14px 16px;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    color: #e0e0f0;
    font-size: 13px;
    width: 270px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.7);
    transition: opacity 0.2s, transform 0.2s;
}

.wall3t-widget.wall3t-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
}

.wall3t-widget::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    border-radius: 12px 12px 0 0;
    background: linear-gradient(90deg, #6366f1, #8b5cf6, #06b6d4);
}

/* Header */
.wall3t-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.wall3t-logo {
    font-size: 14px;
    font-weight: 700;
    color: #c4b5fd;
}
.wall3t-chain-badge {
    background: #1e3a5f;
    color: #60a5fa;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 20px;
    letter-spacing: 1px;
    border: 1px solid #2563eb44;
}

/* Guest state */
.wall3t-guest {
    text-align: center;
    padding: 8px 0;
    color: #888;
}
.wall3t-guest .wall3t-icon {
    font-size: 22px;
    display: block;
    margin-bottom: 6px;
}

/* Custodial wallet display */
.wall3t-custodial {
    background: #1a1a2e;
    border: 1px solid #2a2a4a;
    border-radius: 8px;
    padding: 6px 10px;
    margin-bottom: 10px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}
.wall3t-custodial-label {
    color: #888;
    white-space: nowrap;
}
.wall3t-custodial-addr {
    color: #a78bfa;
    font-family: monospace;
    font-size: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    text-align: right;
}

/* Optional MetaMask connect (collapsed by default) */
.wall3t-connect-section {
    margin-bottom: 10px;
}
.wall3t-address {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #1a1a2e;
    border: 1px solid #2a2a4a;
    border-radius: 8px;
    padding: 5px 9px;
    margin-bottom: 6px;
    font-size: 11px;
}
.wall3t-addr-label { color: #888; }
.wall3t-addr-value {
    color: #a78bfa;
    font-family: monospace;
    font-size: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

/* Buttons */
.wall3t-btn {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s;
    width: 100%;
    margin-bottom: 4px;
}
.wall3t-btn:hover { opacity: 0.9; }
.wall3t-btn-disconnect {
    background: #2a1a1a;
    border: 1px solid #5f2525;
    color: #f87171;
}
.wall3t-btn-link {
    background: transparent;
    border: 1px solid #374151;
    color: #9ca3af;
    font-size: 10px;
    padding: 4px 8px;
    margin-bottom: 0;
}

/* Balance section */
.wall3t-balance-section { margin-bottom: 10px; }
.wall3t-balance-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 3px 0;
    border-bottom: 1px solid #1a1a2e;
}
.wall3t-balance-row:last-child { border-bottom: none; }
.wall3t-balance-label { color: #888; font-size: 11px; }
.wall3t-balance-value {
    font-weight: 700;
    font-size: 14px;
    color: #c4b5fd;
    margin: 0 4px;
}
.wall3t-balance-symbol { color: #6366f1; font-size: 10px; font-weight: 600; }
.wall3t-total-row .wall3t-balance-value { color: #a78bfa; font-size: 16px; }

/* Earn guide */
.wall3t-earn-guide {
    background: #0a0a12;
    border: 1px solid #1e1e2e;
    border-radius: 8px;
    padding: 8px 10px;
    margin-bottom: 10px;
}
.wall3t-earn-item {
    font-size: 11px;
    color: #9ca3af;
    padding: 2px 0;
}
.wall3t-earn-item strong { color: #c4b5fd; }

/* Toast */
.wall3t-toast {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 10002;
    background: #1e1e2e;
    border: 1px solid #3a3a5a;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #e0e0f0;
    display: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.6);
    max-width: 280px;
    right: 20px;
}
.wall3t-toast-show { display: block !important; }
.wall3t-toast-success { border-color: #16a34a; color: #86efac; }
.wall3t-toast-error { border-color: #dc2626; color: #fca5a5; }
.wall3t-toast-info { border-color: #2563eb; color: #93c5fd; }

/* History */
.wall3t-history-title {
    font-size: 11px;
    font-weight: 700;
    color: #6366f1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}
.wall3t-history-row {
    font-size: 11px;
    color: #9ca3af;
    padding: 2px 0;
    display: flex;
    align-items: center;
    gap: 4px;
    border-bottom: 1px solid #1a1a2e;
    padding: 4px 0;
}
.wall3t-hist-action { color: #c4b5fd; font-weight: 600; min-width: 48px; }
.wall3t-hist-track { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.wall3t-hist-amount { color: #86efac; font-weight: 700; font-size: 11px; }
.wall3t-badge-sent { background: #052e16; color: #86efac; font-size: 9px; padding: 1px 5px; border-radius: 10px; }
.wall3t-badge-pending { background: #1c1917; color: #a8a29e; font-size: 9px; padding: 1px 5px; border-radius: 10px; }
.wall3t-history-empty { font-size: 11px; color: #4b5563; padding: 4px 0; }

/* === Wallet Holdings (9 Base tokens) === */
.wall3t-holdings {
  margin: 12px 0;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 10px 12px;
}
.wall3t-holdings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.wall3t-holdings-title {
  font-weight: 700;
  font-size: 0.95em;
  letter-spacing: 0.02em;
}
.wall3t-holdings-refresh {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  border-radius: 6px;
  width: 26px; height: 26px;
  cursor: pointer;
  font-size: 1em;
  transition: transform .3s;
}
.wall3t-holdings-refresh:hover { background: rgba(255,255,255,0.08); }
.wall3t-holdings-refresh.spinning { animation: wall3t-spin 1.2s linear infinite; }
@keyframes wall3t-spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
.wall3t-holdings-list { display: flex; flex-direction: column; gap: 2px; }
.wall3t-holdings-loading, .wall3t-holdings-empty, .wall3t-holdings-error {
  text-align: center;
  padding: 8px;
  color: #aaa;
  font-size: 0.85em;
}
.wall3t-holdings-error { color: #e57373; }
.wall3t-token-row {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 5px 6px;
  border-radius: 6px;
  font-size: 0.88em;
}
.wall3t-token-row:hover { background: rgba(255,255,255,0.05); }
.wall3t-token-symbol {
  font-weight: 700;
  color: #4fc3f7;
}
.wall3t-token-name {
  color: #bbb;
  font-size: 0.82em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wall3t-token-balance {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 0.85em;
  text-align: right;
  color: #fff;
}
