/* ============================================================
   ZenithEarn - Estilos Personalizados
   ============================================================ */

/* HEADER */
.ze-header {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #312e81 100%);
}
.ze-logo-icon {
  width: 2.5rem; height: 2.5rem;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-radius: 0.75rem;
  display: flex; align-items: center; justify-content: center;
  color: white;
}
.ze-logo-icon-sm {
  width: 2rem; height: 2rem;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-radius: 0.5rem;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 0.75rem;
}
.ze-balance-chip {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 9999px;
  padding: 0.35rem 0.875rem;
  color: white;
  display: flex; align-items: center;
}

/* NAV BUTTONS */
.nav-btn {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  border-radius: 0.625rem;
  color: rgba(255,255,255,0.75);
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.2s;
  background: transparent; border: none; cursor: pointer;
}
.nav-btn:hover { background: rgba(255,255,255,0.12); color: white; }
.nav-label { display: none; }
@media (min-width: 640px) { .nav-label { display: inline; } }
.nav-admin { background: rgba(234,179,8,0.2); color: #fbbf24; }
.nav-admin:hover { background: rgba(234,179,8,0.3); }
.nav-logout:hover { background: rgba(239,68,68,0.25); color: #f87171; }

/* HERO BUTTONS */
.ze-btn-primary {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white; border-radius: 0.875rem;
  font-weight: 800; cursor: pointer;
  transition: all 0.2s; border: none;
  display: inline-flex; align-items: center; justify-content: center;
}
.ze-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(99,102,241,0.4); }

.ze-btn-ghost {
  background: white; color: #4f46e5;
  border: 2px solid #c7d2fe;
  border-radius: 0.875rem; font-weight: 700;
  cursor: pointer; transition: all 0.2s;
  display: inline-flex; align-items: center; justify-content: center;
}
.ze-btn-ghost:hover { background: #eef2ff; border-color: #a5b4fc; }

.ze-btn-outline {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: white; border-radius: 0.625rem;
  font-weight: 600; cursor: pointer; transition: all 0.2s;
  display: inline-flex; align-items: center;
}
.ze-btn-outline:hover { background: rgba(255,255,255,0.2); }

.ze-btn-white {
  background: white; color: #4f46e5;
  border: none; border-radius: 0.625rem;
  font-weight: 800; cursor: pointer; transition: all 0.2s;
  display: inline-flex; align-items: center;
}
.ze-btn-white:hover { background: #eef2ff; transform: translateY(-1px); }

/* GRADIENT TEXT */
.ze-gradient-text {
  background: linear-gradient(135deg, #6366f1, #a78bfa, #ec4899);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* COLOR CARDS */
.ze-green-card  { background: linear-gradient(135deg, #10b981, #059669); }
.ze-blue-card   { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.ze-purple-card { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.ze-yellow-card { background: linear-gradient(135deg, #f59e0b, #d97706); }
.ze-orange-card { background: linear-gradient(135deg, #f97316, #ea580c); }
.ze-pink-card   { background: linear-gradient(135deg, #ec4899, #db2777); }
.ze-dark-card   { background: linear-gradient(135deg, #374151, #1f2937); }
.ze-indigo-card { background: linear-gradient(135deg, #6366f1, #4338ca); }

/* QUICK STATS */
.quick-stat {
  background: white; border-radius: 1rem; padding: 1.25rem;
  text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.quick-stat-value { font-size: 1.875rem; font-weight: 900; line-height: 1; margin-bottom: 0.25rem; }
.quick-stat-label { font-size: 0.75rem; color: #6b7280; font-weight: 500; }

/* HOW IT WORKS */
.how-step { text-align: center; }
.how-icon {
  width: 4rem; height: 4rem; border-radius: 1rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 0.5rem;
}
.how-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.5rem; height: 1.5rem;
  background: #6366f1; color: white;
  border-radius: 9999px; font-size: 0.7rem; font-weight: 700;
  margin-bottom: 0.5rem;
}

/* WELCOME BANNER */
.ze-welcome-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #312e81 100%);
  border-radius: 1.5rem;
  padding: 1.75rem;
  display: flex; justify-content: space-between; align-items: flex-end;
  flex-wrap: wrap; gap: 1rem;
}
.ze-level-badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  color: white; font-size: 0.7rem; font-weight: 700;
  padding: 0.2rem 0.75rem; border-radius: 9999px;
  text-transform: uppercase; letter-spacing: 0.05em;
}

/* DASH STATS */
.dash-stat {
  color: white; border-radius: 1rem; padding: 1.1rem;
  position: relative; overflow: hidden;
}
.dash-stat-icon { font-size: 1.1rem; opacity: 0.7; margin-bottom: 0.35rem; }
.dash-stat-val  { font-size: 1.5rem; font-weight: 900; line-height: 1; }
.dash-stat-lbl  { font-size: 0.7rem; opacity: 0.75; margin-top: 0.15rem; }

/* ACTION BUTTONS */
.action-btn {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 1rem; border-radius: 0.875rem;
  font-size: 0.875rem; font-weight: 600; cursor: pointer;
  transition: all 0.2s; border: 1px solid transparent; width: 100%;
}
.action-btn-purple { background: #f5f3ff; color: #7c3aed; border-color: #ddd6fe; }
.action-btn-purple:hover { background: #ede9fe; }
.action-btn-green  { background: #f0fdf4; color: #16a34a; border-color: #bbf7d0; }
.action-btn-green:hover { background: #dcfce7; }
.action-btn-blue   { background: #eff6ff; color: #2563eb; border-color: #bfdbfe; }
.action-btn-blue:hover { background: #dbeafe; }
.action-btn-orange { background: #fff7ed; color: #ea580c; border-color: #fed7aa; }
.action-btn-orange:hover { background: #ffedd5; }

/* PLAN CARDS - Landing */
.plan-card {
  background: white; border-radius: 1.25rem; padding: 1.5rem;
  border: 2px solid #e5e7eb; transition: all 0.3s; position: relative;
  overflow: hidden;
}
.plan-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0,0,0,0.12); }
.plan-card.featured { border-color: #6366f1; }
.plan-card .plan-header { border-radius: 0.875rem; padding: 1.25rem; color: white; text-align: center; margin-bottom: 1.25rem; }
.plan-detail { display: flex; justify-content: space-between; align-items: center; padding: 0.6rem 0; border-bottom: 1px solid #f3f4f6; font-size: 0.875rem; }
.plan-detail:last-child { border-bottom: none; }
.plan-detail-label { color: #6b7280; }
.plan-detail-value { font-weight: 700; }
.plan-gain { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 0.75rem; padding: 0.75rem; text-align: center; margin: 0.875rem 0; }

/* INVESTMENT CARD (dashboard) */
.invest-card {
  background: white; border: 1px solid #e5e7eb; border-radius: 1rem; padding: 1.1rem;
}
.invest-progress { height: 6px; background: #f3f4f6; border-radius: 9999px; overflow: hidden; margin: 0.5rem 0; }
.invest-bar { height: 100%; background: linear-gradient(90deg, #10b981, #059669); border-radius: 9999px; transition: width 0.5s; }

/* TX LIST */
.tx-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem; border-radius: 0.75rem; background: #f9fafb; border: 1px solid #f3f4f6;
}
.tx-icon {
  width: 2.25rem; height: 2.25rem; border-radius: 0.625rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* STATUS BADGES */
.sb {
  display: inline-flex; align-items: center; gap: 0.25rem;
  padding: 0.15rem 0.6rem; border-radius: 9999px;
  font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
}
.sb-pendiente  { background: #fef3c7; color: #92400e; }
.sb-aprobado   { background: #d1fae5; color: #065f46; }
.sb-completado { background: #d1fae5; color: #065f46; }
.sb-rechazado  { background: #fee2e2; color: #991b1b; }
.sb-activo     { background: #dbeafe; color: #1e40af; }

/* REFERRAL ITEMS */
.ref-item {
  display: flex; align-items: center; gap: 0.875rem; padding: 0.875rem;
  background: #f9fafb; border-radius: 0.875rem; border: 1px solid #f3f4f6; transition: all 0.2s;
}
.ref-item:hover { background: #f5f3ff; border-color: #ddd6fe; }
.ref-avatar {
  width: 2.5rem; height: 2.5rem; border-radius: 0.75rem;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white; font-weight: 800; font-size: 0.875rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* ADMIN */
.ze-tab {
  padding: 0.45rem 0.9rem; border-radius: 0.625rem; font-size: 0.8rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s; border: 1px solid #e5e7eb; background: white; color: #6b7280;
  display: flex; align-items: center;
}
.ze-tab.active { background: #4f46e5; color: white; border-color: #4f46e5; }
.ze-tab:hover:not(.active) { background: #eef2ff; border-color: #a5b4fc; color: #4f46e5; }
.ze-panel { animation: fadeIn 0.25s ease; }
.ze-panel.hidden { display: none; }
.ze-filter {
  padding: 0.3rem 0.75rem; border-radius: 9999px; font-size: 0.75rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s; border: 1px solid #e5e7eb; background: white; color: #6b7280;
}
.ze-filter.active { background: #4f46e5; color: white; border-color: #4f46e5; }

/* ADMIN REQUEST CARDS */
.req-card {
  background: white; border: 1px solid #e5e7eb; border-radius: 1rem; padding: 1.25rem;
}
.req-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }

/* WALLET ACTIONS */
.ze-wallet-action {
  color: white; border-radius: 1.25rem; padding: 1.5rem;
  text-align: left; cursor: pointer; transition: all 0.2s; border: none;
  display: block; width: 100%;
}
.ze-wallet-action:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,0.2); }

/* SMALL BUTTONS */
.ze-btn-sm {
  padding: 0.4rem 0.875rem; border-radius: 0.625rem; font-size: 0.8rem;
  font-weight: 600; cursor: pointer; transition: all 0.2s; border: none;
  display: inline-flex; align-items: center;
}
.ze-btn-purple { background: #ede9fe; color: #7c3aed; }
.ze-btn-purple:hover { background: #ddd6fe; }
.ze-btn-green  { background: #dcfce7; color: #16a34a; }
.ze-btn-green:hover { background: #bbf7d0; }
.ze-btn-blue   { background: #dbeafe; color: #2563eb; }
.ze-btn-blue:hover { background: #bfdbfe; }
.ze-btn-red    { background: #fee2e2; color: #dc2626; }
.ze-btn-red:hover { background: #fecaca; }

/* SECTIONS */
.app-section { animation: fadeIn 0.3s ease; }
.app-section.hidden { display: none; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* MODAL */
#modalContent { animation: modalIn 0.25s ease; }
@keyframes modalIn { from { transform: scale(0.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* TOASTS */
.toast {
  min-width: 260px; max-width: 340px; padding: 0.875rem 1.1rem;
  border-radius: 0.875rem; font-size: 0.85rem; font-weight: 600;
  display: flex; align-items: center; gap: 0.75rem;
  animation: slideIn 0.3s ease; box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.toast.success { background: #10b981; color: white; }
.toast.error   { background: #ef4444; color: white; }
.toast.info    { background: #3b82f6; color: white; }
.toast.warning { background: #f59e0b; color: white; }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* SCROLLBAR */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #a78bfa; border-radius: 3px; }
