/* ═══════════════════════════════════════════════════════════════════
   Sylcon Rewards – User Portal CSS (Premium Fintech Redesign)
═══════════════════════════════════════════════════════════════════ */

/* ── Marketing Landing Hero ─────────────────────────────────────── */
.hero-section {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 60px;
  overflow: hidden;
  background: radial-gradient(circle at 50% -20%, #E0F2FE 0%, var(--bg-light) 60%);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-main);
  margin-bottom: 24px;
}
.hero-text h1 span {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-text p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 500px;
}

/* Floating 3D Elements */
.floating-stage {
  position: relative;
  height: 600px;
  perspective: 1000px;
}

.floating-card {
  position: absolute;
  background: var(--gradient-glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: var(--radius-lg);
  box-shadow: 0 32px 64px rgba(15, 118, 110, 0.1);
  padding: 24px;
  will-change: transform;
}

/* Auth Card (on landing) */
.auth-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 460px;
  position: relative;
  z-index: 20;
}
.auth-logo-icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  background: var(--gradient-main);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  margin-bottom: 24px;
  box-shadow: var(--shadow-glow);
}

/* ── Marketing Sections ─────────────────────────────────────────── */
.section {
  padding: 100px 24px;
  position: relative;
}
.section-title {
  text-align: center;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
}
.section-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 60px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  transition: all .4s ease;
}
.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.feature-icon {
  width: 80px; height: 80px;
  background: #F0FDF4;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 24px;
  color: var(--primary);
}

/* FAQ Accordion */
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  overflow: hidden;
  transition: all .3s;
}
.faq-header {
  padding: 24px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  cursor: pointer;
  display: flex; justify-content: space-between;
  align-items: center;
}
.faq-content {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, padding .4s ease;
  color: var(--text-muted);
}
.faq-item.active { box-shadow: var(--shadow-md); border-color: var(--secondary); }
.faq-item.active .faq-content { padding-bottom: 24px; max-height: 500px; }

/* Final CTA */
.cta-banner {
  background: var(--gradient-main);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
  color: #fff;
  max-width: 1000px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content:''; position:absolute; inset:0;
  background: url('data:image/svg+xml;utf8,<svg ...>') /* Can add pattern if needed */
}

/* ── User Dashboard (Fintech Style) ─────────────────────────────── */
.user-layout {
  display: flex; flex-direction: column; min-height: 100vh;
}
.user-navbar {
  height: 80px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px;
  position: sticky; top: 0; z-index: 100;
}
.user-content {
  flex: 1; padding: 40px; max-width: 1200px; margin: 0 auto; width: 100%;
}

.dashboard-hero {
  display: flex; gap: 40px; margin-bottom: 40px;
}
.balance-card {
  flex: 1;
  background: var(--gradient-main);
  border-radius: var(--radius-lg);
  padding: 40px;
  color: #fff;
  box-shadow: var(--shadow-glow);
  position: relative; overflow: hidden;
}
.balance-card h3 { font-size: 1.2rem; font-weight: 500; opacity: 0.9; margin-bottom: 8px;}
.balance-card .amount { font-size: 4.5rem; font-weight: 800; font-family: 'Plus Jakarta Sans'; line-height: 1;}
.balance-card .amount span { font-size: 2rem; opacity: 0.8; }

.quick-actions {
  display: flex; flex-direction: column; gap: 16px; justify-content: center;
}
.action-btn {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex; align-items: center; gap: 16px;
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700;
  box-shadow: var(--shadow-sm);
  transition: all .3s;
  cursor: pointer;
  min-width: 250px;
}
.action-btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--secondary); }
.action-btn i { font-size: 1.5rem; color: var(--primary); }

/* Custom Tabs for Dashboard */
.user-tabs {
  display: flex; gap: 12px; margin-bottom: 32px;
  border-bottom: 2px solid var(--border-light);
  padding-bottom: 12px;
  overflow-x: auto;
}
.tab-btn {
  background: none; border: none; padding: 12px 20px;
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 600; font-size: 1rem;
  color: var(--text-muted); cursor: pointer; transition: all .2s;
  border-radius: 100px;
}
.tab-btn:hover { color: var(--text-main); background: #F1F5F9; }
.tab-btn.active { background: var(--bg-main); color: var(--primary); box-shadow: var(--shadow-sm); border: 1px solid var(--border-light); }
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeUp .4s ease forwards; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Referral Widget */
.referral-widget {
  background: #fff; border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); padding: 32px;
  display: flex; justify-content: space-between; align-items: center;
  box-shadow: var(--shadow-sm);
}
.ref-link-box {
  background: #F8FFFE; border: 1px dashed var(--secondary);
  border-radius: var(--radius-sm); padding: 16px 24px;
  font-family: 'Plus Jakarta Sans', monospace; font-size: 1.1rem;
  color: var(--primary); flex: 1; margin: 0 24px;
  display: flex; justify-content: space-between; align-items: center;
}

/* ── Mobile Optimization ────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-text h1 { font-size: 2.5rem; }
  .floating-stage { display: none; } /* Hide heavy 3D floating on mobile */
  .auth-card { margin: 0 auto; }
  .dashboard-hero { flex-direction: column; }
  .referral-widget { flex-direction: column; gap: 20px; text-align: center; }
  .ref-link-box { margin: 0; width: 100%; flex-direction: column; gap: 12px; }
  .quick-actions { flex-direction: row; flex-wrap: wrap; }
  .action-btn { flex: 1; }
}
