/* ═══════════════════════════════════════════════════════
   ZoZoPeak.com — dashboard.css
   User Dashboard specific styles
   ═══════════════════════════════════════════════════════ */

/* ─── Dashboard Layout ─── */
.dashboard-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  padding: var(--space-xl) 0;
}

@media (min-width: 768px) {
  .dashboard-layout {
    grid-template-columns: 300px 1fr;
  }
}

/* ─── User Profile Card (sidebar) ─── */
.profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-lg);
  position: sticky;
  top: calc(var(--navbar-height) + var(--space-lg));
}

.profile-avatar-wrap {
  position: relative;
  display: inline-block;
}

.profile-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 3px solid var(--gold-primary);
  object-fit: cover;
  box-shadow: 0 0 20px rgba(212,175,55,0.3);
}

.profile-tier-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-light));
  color: #0B0F2C;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.2;
}

.profile-country {
  color: var(--text-muted);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: center;
}

/* ─── Points Display ─── */
.points-hero {
  background: linear-gradient(135deg, var(--bg-card), #0f1a45);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.points-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(212,175,55,0.06) 0%, transparent 60%);
  pointer-events: none;
}

.points-confirmed {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 700;
  color: var(--text-gold);
  line-height: 1;
  letter-spacing: -0.02em;
  animation: countUp 0.6s ease;
}

.points-confirmed-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: var(--space-xs);
}

.points-pending-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.875rem;
}

.points-pending-amount {
  color: var(--warning);
  font-weight: 600;
}

.pending-countdown {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(245,158,11,0.1);
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 0.75rem;
  color: var(--warning);
  margin-top: var(--space-sm);
}

@keyframes countUp {
  from { opacity: 0; transform: scale(0.8); }
  to   { opacity: 1; transform: scale(1); }
}

/* ─── Withdraw Button / Modal ─── */
.withdraw-modal .modal {
  max-width: 580px;
}

.withdraw-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin: var(--space-lg) 0;
}

.withdraw-option {
  background: rgba(255,255,255,0.04);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.withdraw-option:hover { border-color: var(--gold-primary); }
.withdraw-option.selected {
  border-color: var(--gold-primary);
  background: var(--gold-muted);
}

.withdraw-option-icon { font-size: 1.8rem; }
.withdraw-option-label { font-weight: 600; font-size: 0.9rem; }
.withdraw-option-sub   { font-size: 0.75rem; color: var(--text-muted); }

.gift-amounts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-sm);
}

.gift-amount-btn {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
  min-height: unset;
}

.gift-amount-btn:hover { border-color: var(--gold-primary); }
.gift-amount-btn.selected {
  border-color: var(--gold-primary);
  background: var(--gold-muted);
  color: var(--text-gold);
}

.withdraw-amount-choice {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.withdraw-amount-choice > button {
  width: 100%;
}

.withdraw-amount-hint {
  min-height: 1rem;
  text-align: center;
  font-size: 0.72rem;
  color: #fca5a5;
}

.amount-button-disabled,
.amount-button-disabled:hover {
  cursor: not-allowed;
  opacity: 0.58;
  color: var(--text-muted);
  border-color: rgba(239, 68, 68, 0.3) !important;
  background: rgba(239, 68, 68, 0.08) !important;
  box-shadow: none !important;
  transform: none !important;
}

.gift-amount-usd  { font-weight: 700; font-size: 1.1rem; color: var(--text-gold); }
.gift-amount-pts  { font-size: 0.7rem; color: var(--text-muted); }

.withdraw-warning {
  background: rgba(212,175,55,0.08);
  border: 1px solid rgba(212,175,55,0.25);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  font-size: 0.85rem;
  color: var(--text-gold);
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin: var(--space-lg) 0;
}

/* ─── Referral Section ─── */
.referral-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.referral-link-row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
}

.referral-link-text {
  flex: 1;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-copy {
  background: var(--gold-muted);
  border: 1px solid var(--border);
  color: var(--text-gold);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
  min-height: unset;
}

.btn-copy:hover { background: rgba(212,175,55,0.25); }

/* ─── Activity Log ─── */
.activity-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.activity-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.02);
  transition: background var(--transition-fast);
}

.activity-item:hover { background: rgba(255,255,255,0.04); }

.activity-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.activity-icon.earn    { background: rgba(34,197,94,0.15); }
.activity-icon.redeem  { background: rgba(212,175,55,0.15); }
.activity-icon.pending { background: rgba(245,158,11,0.15); }
.activity-icon.deduct  { background: rgba(239,68,68,0.15); }

.activity-info { flex: 1; padding: 0 var(--space-md); }
.activity-desc { font-size: 0.875rem; color: var(--text-primary); }
.activity-time { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }

.activity-amount {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 0.9rem;
}

.activity-amount.positive { color: var(--success); }
.activity-amount.negative { color: var(--danger); }
.activity-amount.pending  { color: var(--warning); }

/* ─── AI Offers section header ─── */
.ai-offers-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.ai-badge {
  background: linear-gradient(135deg, rgba(59,130,246,0.2), rgba(147,51,234,0.2));
  border: 1px solid rgba(59,130,246,0.3);
  color: #93c5fd;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.offer-ai-reason {
  font-size: 0.75rem;
  color: #93c5fd;
  background: rgba(59,130,246,0.08);
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  display: flex;
  align-items: flex-start;
  gap: 4px;
  line-height: 1.4;
}

/* ─── Monlix Offerwall ─── */
.offerwall-frame {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  width: 100%;
  min-height: 600px;
  background: var(--bg-card);
}

/* ─── Tabs (dashboard sections) ─── */
.dash-tabs {
  display: flex;
  gap: var(--space-sm);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-xl);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.dash-tabs::-webkit-scrollbar { display: none; }

.dash-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  padding: var(--space-sm) var(--space-md);
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  transition: color var(--transition-fast);
  min-height: unset;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.dash-tab:hover { color: var(--text-primary); }

.dash-tab.active {
  color: var(--text-gold);
  border-bottom-color: var(--gold-primary);
}
