/* ============================================================
   FaryPay Design System — Theme & Components
   Dark theme: deep blue + green accent + white
   Built with: landing-page-pro + dashboard-pro + ui-components-pro + auth-pages-pro
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  /* Brand Colors */
  --primary: #1B4D8F;
  --primary-rgb: 27, 77, 143;
  --primary-light: #2563EB;
  --primary-light-rgb: 37, 99, 235;
  --primary-dark: #0F2D5C;
  --accent: #00D084;
  --accent-rgb: 0, 208, 132;
  --accent-light: #34D399;

  /* Backgrounds */
  --bg: #060B14;
  --bg-body: #060B14;
  --bg-card: #0D1520;
  --bg-surface: #131C2E;
  --bg-sidebar: #080E1A;
  --surface: rgba(255,255,255,0.04);
  --surface-hover: rgba(255,255,255,0.08);
  --surface-active: rgba(255,255,255,0.12);

  /* Text */
  --text-1: #FFFFFF;
  --text-2: rgba(255,255,255,0.6);
  --text-3: rgba(255,255,255,0.4);
  --text-primary: #FFFFFF;
  --text-secondary: #94A3B8;

  /* Borders */
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(27, 77, 143, 0.3);

  /* Status */
  --success: #10B981;
  --warning: #F59E0B;
  --error: #EF4444;
  --info: #3B82F6;

  /* Typography */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-heading: 'Space Grotesk', sans-serif;

  /* Spacing (8px grid) */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.15);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.2);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.3);
  --shadow-glow: 0 0 60px rgba(27, 77, 143, 0.15);
  --shadow-glow-accent: 0 0 60px rgba(0, 208, 132, 0.15);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --duration-fast: 0.2s;
  --duration-normal: 0.4s;
  --duration-slow: 0.6s;
  --duration-reveal: 0.8s;
}

/* ============================================================
   BASE RESET & GLOBAL
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

body.farypay-theme {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-1);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-wrap: balance;
}

a { color: var(--primary-light); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--accent); }

/* ============================================================
   NAVIGATION (Landing Page - Glass)
   ============================================================ */
.fp-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 1rem 2rem;
  background: rgba(6,11,20,0.4);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: all 0.4s var(--ease-out);
}
.fp-nav.scrolled {
  padding: 0.6rem 2rem;
  background: rgba(6,11,20,0.9);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.fp-nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.fp-nav-logo img { height: 40px; }
.fp-nav-links { display: flex; gap: 32px; align-items: center; list-style: none; margin: 0; padding: 0; }
.fp-nav-links a {
  color: var(--text-2); font-weight: 500; font-size: 0.95rem;
  transition: color 0.3s;
}
.fp-nav-links a:hover { color: var(--text-1); }
.fp-nav-cta {
  padding: 10px 24px; border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff !important; font-weight: 700; font-size: 0.9rem;
  transition: all 0.3s var(--ease-out);
  box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.3);
}
.fp-nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(var(--primary-rgb), 0.45);
  color: #fff !important;
}

/* Nav dropdowns */
.fp-nav-dropdown { position: relative; }
.fp-nav-dropdown > a { display: flex; align-items: center; gap: 4px; }
.fp-nav-dropdown-menu {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%);
  min-width: 220px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 14px; padding: 8px; box-shadow: 0 20px 50px rgba(0,0,0,0.4);
  opacity: 0; pointer-events: none; transition: all 0.25s var(--ease-out);
  list-style: none; margin: 0; z-index: 200;
}
.fp-nav-dropdown:hover .fp-nav-dropdown-menu {
  opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
.fp-nav-dropdown-menu li a {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  border-radius: 10px; color: var(--text-2); font-size: 0.85rem;
  font-weight: 500; transition: all 0.2s; text-decoration: none;
}
.fp-nav-dropdown-menu li a:hover { background: var(--surface); color: var(--text-1); }
.fp-nav-dropdown-menu li a i { font-size: 1rem; width: 20px; text-align: center; color: var(--accent); }

/* Mobile nav */
.fp-nav-toggle { display: none; background: none; border: none; color: var(--text-1); font-size: 1.5rem; cursor: pointer; }
@media (max-width: 768px) {
  .fp-nav-toggle { display: block; }
  .fp-nav-links {
    display: none; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(6,11,20,0.98); padding: 1rem 1.5rem; gap: 4px;
    backdrop-filter: blur(20px); border-bottom: 1px solid var(--border);
    max-height: 80vh; overflow-y: auto;
  }
  .fp-nav-links.open { display: flex; }
  .fp-nav-links > li > a { padding: 12px 0; font-size: 1rem; }
  .fp-nav-dropdown-menu {
    position: static; transform: none; opacity: 1; pointer-events: auto;
    background: transparent; border: none; box-shadow: none;
    padding: 0 0 0 12px; min-width: auto; display: none;
  }
  .fp-nav-dropdown.open .fp-nav-dropdown-menu { display: block; }
  .fp-nav-dropdown-menu li a { padding: 8px 12px; font-size: 0.85rem; }
  .fp-nav-cta {
    margin-top: 8px; width: 100%; text-align: center;
    justify-content: center;
  }
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.fp-hero {
  min-height: 100vh; display: flex; align-items: center;
  position: relative; overflow: hidden; padding: 120px 2rem 80px;
}
.fp-hero::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 40%, rgba(27,77,143,0.18), transparent),
    radial-gradient(ellipse 60% 80% at 80% 20%, rgba(0,208,132,0.12), transparent),
    radial-gradient(ellipse 40% 50% at 50% 80%, rgba(27,77,143,0.08), transparent);
  animation: meshShift 20s ease-in-out infinite alternate;
}
@keyframes meshShift { to { background-position: 30% 70%, 70% 30%, 50% 20%; filter: hue-rotate(15deg); } }

.fp-hero-content { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; width: 100%; }
.fp-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 20px; margin-bottom: 24px;
  background: rgba(0,208,132,0.1); border: 1px solid rgba(0,208,132,0.2);
  color: var(--accent); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
}
.fp-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 800; margin-bottom: 24px;
  line-height: 1.1;
}
.fp-gradient-text {
  background: linear-gradient(135deg, #fff 0%, var(--primary-light) 50%, var(--accent) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.fp-hero p { font-size: 1.25rem; color: var(--text-2); max-width: 560px; margin-bottom: 40px; }
.fp-hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ============================================================
   BUTTONS
   ============================================================ */
.fp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 32px; border: none; border-radius: var(--radius-md); cursor: pointer;
  font-weight: 700; font-size: 1rem; font-family: var(--font-body);
  position: relative; overflow: hidden;
  transition: all 0.4s var(--ease-out);
  text-decoration: none;
}
.fp-btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.3);
}
.fp-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(var(--primary-rgb), 0.45);
  color: #fff;
}
.fp-btn-primary:active { transform: translateY(0) scale(0.98); }
.fp-btn-primary::after {
  content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.6s ease;
}
.fp-btn-primary:hover::after { left: 100%; }

.fp-btn-outline {
  background: transparent; border: 1.5px solid rgba(255,255,255,0.2);
  color: #fff;
}
.fp-btn-outline:hover {
  border-color: var(--primary-light);
  background: rgba(var(--primary-rgb), 0.08);
  box-shadow: 0 0 30px rgba(var(--primary-rgb), 0.15);
  color: #fff;
}

.fp-btn-sm { padding: 10px 20px; font-size: 0.875rem; }
.fp-btn-lg { padding: 18px 40px; font-size: 1.1rem; }

/* ============================================================
   FEATURES (Bento Grid)
   ============================================================ */
.fp-section {
  padding: 100px 2rem; position: relative;
  max-width: 1200px; margin: 0 auto;
}
.fp-section-label {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent); font-weight: 700; font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px;
}
.fp-section-title {
  font-size: clamp(2rem, 3.5vw, 3rem); margin-bottom: 16px;
}
.fp-section-desc {
  font-size: 1.1rem; color: var(--text-2); max-width: 600px; margin-bottom: 48px;
}

.fp-bento {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; max-width: 1200px; margin: 0 auto;
}
.fp-bento-item {
  background: linear-gradient(160deg, rgba(13,21,32,0.95) 0%, rgba(19,28,46,0.6) 100%);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-xl); padding: 2.5rem 2rem;
  position: relative; overflow: hidden;
  transition: all 0.5s var(--ease-out);
}
.fp-bento-item::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb),0.4), transparent);
  opacity: 0; transition: opacity 0.5s;
}
.fp-bento-item:hover::before { opacity: 1; }
.fp-bento-item::after {
  content: ''; position: absolute; bottom: -60px; right: -60px;
  width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb),0.06), transparent 70%);
  transition: all 0.6s var(--ease-out);
}
.fp-bento-item:hover::after { bottom: -40px; right: -40px; }
.fp-bento-item:hover {
  transform: translateY(-6px);
  border-color: rgba(var(--accent-rgb), 0.15);
  box-shadow: 0 24px 64px rgba(0,0,0,0.3), 0 0 40px rgba(var(--accent-rgb),0.04);
}
.fp-bento-item.large { grid-column: span 2; }
.fp-bento-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.2), rgba(var(--accent-rgb), 0.12));
  color: var(--accent); font-size: 1.4rem; margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(var(--accent-rgb), 0.12);
  position: relative; z-index: 1;
}
.fp-bento-item h3 { font-size: 1.15rem; margin-bottom: 10px; position: relative; z-index: 1; }
.fp-bento-item p { color: var(--text-2); font-size: 0.9rem; line-height: 1.7; margin: 0; position: relative; z-index: 1; }

@media (max-width: 1024px) { .fp-bento { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) {
  .fp-bento { grid-template-columns: 1fr; }
  .fp-bento-item.large { grid-column: span 1; }
}

/* ============================================================
   HOW IT WORKS (Steps)
   ============================================================ */
.fp-steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
  position: relative;
}
.fp-steps::before {
  content: ''; position: absolute; top: 40px; left: 15%; right: 15%;
  height: 2px; background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0.3;
}
.fp-step {
  text-align: center; position: relative; z-index: 1;
}
.fp-step-number {
  width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem; font-weight: 800; font-family: var(--font-heading);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; box-shadow: 0 8px 30px rgba(var(--primary-rgb), 0.3);
}
.fp-step h3 { margin-bottom: 8px; }
.fp-step p { color: var(--text-2); font-size: 0.9rem; }

@media (max-width: 768px) { .fp-steps { grid-template-columns: 1fr; } .fp-steps::before { display: none; } }

/* ============================================================
   PRICING
   ============================================================ */
.fp-pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
  align-items: start;
}
.fp-pricing-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 3rem 2rem;
  transition: all 0.5s var(--ease-out);
}
.fp-pricing-card.featured {
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.12), rgba(var(--accent-rgb), 0.08));
  border-color: rgba(var(--primary-rgb), 0.3);
  transform: scale(1.05);
  box-shadow: 0 0 80px rgba(var(--primary-rgb), 0.2);
}
.fp-pricing-badge {
  display: inline-block; padding: 4px 12px; border-radius: 20px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  margin-bottom: 16px;
}
.fp-pricing-name { font-size: 1.25rem; font-weight: 700; margin-bottom: 8px; }
.fp-pricing-price { font-size: 3rem; font-weight: 800; margin-bottom: 4px; font-family: var(--font-heading); }
.fp-pricing-price span { font-size: 1rem; font-weight: 500; color: var(--text-2); }
.fp-pricing-features { list-style: none; padding: 0; margin: 24px 0; }
.fp-pricing-features li {
  padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.04);
  display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--text-2);
}
.fp-pricing-features li i { color: var(--accent); }
@media (max-width: 768px) {
  .fp-pricing-grid { grid-template-columns: 1fr; }
  .fp-pricing-card.featured { transform: none; }
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.fp-cta {
  padding: 100px 2rem; text-align: center;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.12), rgba(var(--accent-rgb), 0.08));
  border-radius: var(--radius-xl); margin: 0 2rem;
  position: relative; overflow: hidden;
}
.fp-cta::before {
  content: ''; position: absolute; width: 400px; height: 400px; border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.08); top: -100px; right: -100px;
  filter: blur(80px);
}

/* ============================================================
   FOOTER
   ============================================================ */
.fp-footer {
  padding: 80px 2rem 32px; border-top: 1px solid var(--border);
  max-width: 1200px; margin: 0 auto;
}
.fp-footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  margin-bottom: 48px;
}
.fp-footer-brand p { color: var(--text-2); font-size: 0.9rem; margin: 16px 0; max-width: 280px; }
.fp-footer h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 16px; color: var(--text-1); }
.fp-footer-links { list-style: none; padding: 0; margin: 0; }
.fp-footer-links li { margin-bottom: 10px; }
.fp-footer-links a { color: var(--text-2); font-size: 0.9rem; transition: color 0.3s; }
.fp-footer-links a:hover { color: var(--accent); }
.fp-footer-bottom {
  padding-top: 24px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  color: var(--text-3); font-size: 0.85rem;
}
@media (max-width: 768px) { .fp-footer-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ============================================================
   AUTH PAGES
   ============================================================ */
.fp-auth-page {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}
.fp-auth-visual {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary-dark), var(--bg));
}
.fp-auth-form-side {
  display: flex; align-items: center; justify-content: center;
  padding: 3rem; background: var(--bg);
}
@media (max-width: 1024px) {
  .fp-auth-page { grid-template-columns: 1fr; }
  .fp-auth-visual { display: none; }
}

.fp-auth-bg-mesh {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 15% 30%, rgba(var(--primary-rgb),0.18), transparent),
    radial-gradient(ellipse 50% 70% at 85% 60%, rgba(var(--accent-rgb),0.12), transparent),
    radial-gradient(ellipse 60% 40% at 50% 90%, rgba(var(--primary-rgb),0.08), transparent),
    var(--bg);
  animation: meshFloat 25s ease-in-out infinite alternate;
}
@keyframes meshFloat {
  50% { background-position: 30% 60%, 60% 30%, 40% 50%; }
  100% { filter: hue-rotate(20deg); }
}

.fp-auth-orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.5;
  animation: orbFloat 20s ease-in-out infinite alternate;
}
.fp-auth-orb-1 { width: 400px; height: 400px; top: -100px; left: -100px; background: var(--primary); }
.fp-auth-orb-2 { width: 300px; height: 300px; bottom: -80px; right: -80px; background: var(--accent); animation-delay: -7s; animation-duration: 25s; }
.fp-auth-orb-3 { width: 200px; height: 200px; top: 40%; left: 60%; background: var(--primary-light); animation-delay: -13s; animation-duration: 18s; }
@keyframes orbFloat {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.1); }
  66% { transform: translate(-20px, 30px) scale(0.95); }
  100% { transform: translate(15px, -20px) scale(1.05); }
}

.fp-auth-card {
  width: 100%; max-width: 440px;
  background: rgba(13,21,32,0.8);
  backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-xl);
  padding: 3rem 2.5rem;
  position: relative; z-index: 1;
  animation: cardEnter 0.8s var(--ease-out);
}
@keyframes cardEnter { from { opacity: 0; transform: translateY(30px) scale(0.96); } }

.fp-auth-logo { margin-bottom: 32px; text-align: center; }
.fp-auth-logo img { height: 48px; }
.fp-auth-title { font-size: 1.5rem; margin-bottom: 8px; text-align: center; }
.fp-auth-subtitle { color: var(--text-2); text-align: center; margin-bottom: 32px; }

/* Form components */
.fp-form-group { position: relative; margin-bottom: 1.25rem; }
.fp-form-input {
  width: 100%; padding: 16px 18px; padding-top: 24px;
  background: rgba(255,255,255,0.04);
  border: 1.5px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  color: #fff; font-size: 1rem; font-family: var(--font-body);
  transition: all 0.3s var(--ease-out);
  outline: none;
}
.fp-form-input:focus {
  border-color: var(--primary-light);
  background: rgba(var(--primary-rgb), 0.06);
  box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.12);
}
.fp-form-label {
  position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  color: rgba(255,255,255,0.4); font-size: 1rem;
  pointer-events: none;
  transition: all 0.25s var(--ease-out);
}
.fp-form-input:focus ~ .fp-form-label,
.fp-form-input:not(:placeholder-shown) ~ .fp-form-label {
  top: 12px; transform: none;
  font-size: 0.7rem; font-weight: 600;
  color: var(--primary-light); letter-spacing: 0.03em;
}
.fp-form-input-icon { padding-left: 48px; }
.fp-form-icon {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  color: rgba(255,255,255,0.3); font-size: 1.1rem;
  transition: color 0.3s;
}
.fp-form-input:focus ~ .fp-form-icon { color: var(--primary-light); }

.fp-auth-submit {
  width: 100%; padding: 16px; border: none; border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; font-size: 1rem; font-weight: 700; font-family: var(--font-body);
  cursor: pointer; position: relative; overflow: hidden;
  transition: all 0.4s var(--ease-out);
  box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.3);
}
.fp-auth-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(var(--primary-rgb), 0.45);
}
.fp-auth-submit::after {
  content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.6s ease;
}
.fp-auth-submit:hover::after { left: 100%; }

.fp-auth-footer-text {
  text-align: center; margin-top: 24px; color: var(--text-2); font-size: 0.9rem;
}
.fp-auth-footer-text a { color: var(--accent); font-weight: 600; }

.fp-auth-features {
  display: flex; flex-direction: column; gap: 2rem;
  max-width: 400px; position: relative; z-index: 1;
}
.fp-auth-feature {
  display: flex; gap: 16px; align-items: flex-start;
  animation: featureSlide 0.6s var(--ease-out) backwards;
}
.fp-auth-feature:nth-child(1) { animation-delay: 0.2s; }
.fp-auth-feature:nth-child(2) { animation-delay: 0.35s; }
.fp-auth-feature:nth-child(3) { animation-delay: 0.5s; }
.fp-auth-feature-icon {
  width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.03));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: var(--accent);
}
.fp-auth-feature h4 { color: #fff; margin: 0 0 4px; font-size: 1rem; }
.fp-auth-feature p { color: rgba(255,255,255,0.6); margin: 0; font-size: 0.85rem; }
@keyframes featureSlide { from { opacity: 0; transform: translateY(20px); } }

/* ============================================================
   DASHBOARD LAYOUT
   ============================================================ */
.fp-app-shell {
  display: grid; grid-template-columns: 260px 1fr;
  grid-template-rows: 64px 1fr;
  min-height: 100vh;
}
.fp-sidebar {
  grid-row: 1 / -1;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  padding: 1.5rem 1rem;
  display: flex; flex-direction: column;
}
.fp-sidebar-logo { padding: 0 0.5rem 2rem; }
.fp-sidebar-logo img { height: 36px; }
.fp-sidebar-nav { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.fp-sidebar-section { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-3); padding: 16px 14px 8px; }
.fp-sidebar-link {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: 12px;
  color: var(--text-2); font-weight: 500; font-size: 0.9rem;
  transition: all 0.25s ease; text-decoration: none;
}
.fp-sidebar-link:hover { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.8); }
.fp-sidebar-link.active {
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.15), rgba(var(--primary-rgb), 0.08));
  color: var(--primary-light); font-weight: 600;
  box-shadow: inset 3px 0 0 var(--primary-light);
}
.fp-sidebar-link i { font-size: 1.2rem; width: 24px; text-align: center; }

.fp-topbar {
  grid-column: 2;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem;
}
.fp-topbar-title { font-size: 1.1rem; font-weight: 700; }
.fp-topbar-actions { display: flex; align-items: center; gap: 12px; }

.fp-main-content {
  grid-column: 2;
  padding: 2rem;
  overflow-y: auto;
  background: var(--bg);
}

@media (max-width: 1024px) {
  .fp-app-shell { grid-template-columns: 1fr; }
  .fp-sidebar { position: fixed; left: -280px; z-index: 100; width: 260px; height: 100vh;
    transition: left 0.4s var(--ease-out); }
  .fp-sidebar.open { left: 0; }
  .fp-topbar, .fp-main-content { grid-column: 1; }
}

/* ============================================================
   STAT CARDS
   ============================================================ */
.fp-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; margin-bottom: 2rem; }

.fp-stat-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem;
  transition: all 0.4s var(--ease-out);
  position: relative; overflow: hidden;
}
.fp-stat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0; transition: opacity 0.3s;
}
.fp-stat-card:hover { transform: translateY(-4px); border-color: var(--border-hover); }
.fp-stat-card:hover::before { opacity: 1; }

.fp-stat-icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.15), rgba(var(--primary-rgb), 0.05));
  color: var(--primary-light); font-size: 1.3rem;
  margin-bottom: 1rem;
}
.fp-stat-value {
  font-size: 2rem; font-weight: 800; letter-spacing: -0.02em;
  font-family: var(--font-heading);
}
.fp-stat-label { font-size: 0.85rem; color: var(--text-2); margin-top: 0.25rem; }
.fp-stat-change {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.8rem; font-weight: 600; margin-top: 0.5rem;
  padding: 4px 10px; border-radius: 8px;
}
.fp-stat-change.up { color: var(--success); background: rgba(16,185,129,0.1); }
.fp-stat-change.down { color: var(--error); background: rgba(239,68,68,0.1); }

/* ============================================================
   BALANCE CARD (Wallet Style)
   ============================================================ */
.fp-balance-card {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-radius: var(--radius-xl); padding: 2rem; color: #fff;
  position: relative; overflow: hidden; margin-bottom: 2rem;
}
.fp-balance-card::before {
  content: ''; position: absolute;
  width: 300px; height: 300px; border-radius: 50%;
  background: rgba(255,255,255,0.06);
  top: -100px; right: -50px;
}
.fp-balance-label { font-size: 0.85rem; opacity: 0.7; font-weight: 500; }
.fp-balance-amount { font-size: 2.5rem; font-weight: 800; letter-spacing: -0.03em; margin: 0.5rem 0; font-family: var(--font-heading); }
.fp-balance-actions { display: flex; gap: 12px; margin-top: 1.5rem; }
.fp-balance-btn {
  flex: 1; padding: 12px; border-radius: var(--radius-md);
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff; font-weight: 600; text-align: center;
  transition: all 0.3s ease; cursor: pointer;
  font-family: var(--font-body); font-size: 0.9rem;
  text-decoration: none; display: flex; align-items: center; justify-content: center; gap: 8px;
}
.fp-balance-btn:hover { background: rgba(255,255,255,0.25); transform: translateY(-2px); color: #fff; }

/* ============================================================
   DATA TABLE
   ============================================================ */
.fp-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.fp-card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.5rem;
}
.fp-card-title { font-size: 1.1rem; font-weight: 700; }

.fp-data-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.fp-data-table th {
  text-align: left; padding: 12px 16px;
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--text-3); font-weight: 600;
  border-bottom: 1px solid var(--border);
}
.fp-data-table td {
  padding: 16px; border-bottom: 1px solid rgba(255,255,255,0.03);
  font-size: 0.9rem;
}
.fp-data-table tr:hover td { background: var(--surface); }

/* ============================================================
   BADGES
   ============================================================ */
.fp-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 20px;
  font-size: 0.75rem; font-weight: 600;
}
.fp-badge-primary { background: rgba(var(--primary-rgb), 0.12); color: var(--primary-light); }
.fp-badge-success { background: rgba(16,185,129,0.12); color: var(--success); }
.fp-badge-warning { background: rgba(245,158,11,0.12); color: var(--warning); }
.fp-badge-error { background: rgba(239,68,68,0.12); color: var(--error); }

/* ============================================================
   ACTIVITY FEED
   ============================================================ */
.fp-feed-item {
  display: flex; gap: 14px; padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.fp-feed-avatar {
  width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; flex-shrink: 0; font-size: 0.85rem;
}
.fp-feed-content { flex: 1; }
.fp-feed-title { font-weight: 600; font-size: 0.9rem; }
.fp-feed-desc { font-size: 0.8rem; color: var(--text-2); margin-top: 2px; }
.fp-feed-time { font-size: 0.75rem; color: var(--text-3); white-space: nowrap; }

/* ============================================================
   MODAL
   ============================================================ */
.fp-modal-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: var(--space-lg);
  opacity: 0; pointer-events: none;
  transition: opacity var(--duration-fast) ease;
}
.fp-modal-overlay.open { opacity: 1; pointer-events: auto; }
.fp-modal {
  width: 100%; max-width: 480px;
  background: rgba(13,21,32,0.95);
  backdrop-filter: blur(40px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  transform: scale(0.9) translateY(20px);
  transition: transform var(--duration-normal) var(--ease-out-back);
}
.fp-modal-overlay.open .fp-modal { transform: scale(1) translateY(0); }

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
.fp-toast-stack {
  position: fixed; top: 20px; right: 20px; z-index: 99999;
  display: flex; flex-direction: column; gap: 10px;
  pointer-events: none;
}
.fp-toast {
  pointer-events: auto;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px; border-radius: var(--radius-md);
  background: rgba(13,21,32,0.95);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-1); font-weight: 500; font-size: 0.9rem;
  box-shadow: var(--shadow-lg);
  animation: fpToastIn 0.5s var(--ease-out);
  max-width: 380px;
}
@keyframes fpToastIn { from { opacity: 0; transform: translateX(100px) scale(0.9); } }
.fp-toast.success { border-left: 3px solid var(--success); }
.fp-toast.error { border-left: 3px solid var(--error); }

/* ============================================================
   PROGRESS BAR
   ============================================================ */
.fp-progress-track {
  height: 8px; border-radius: 4px;
  background: var(--surface); overflow: hidden;
}
.fp-progress-fill {
  height: 100%; border-radius: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 1s var(--ease-out);
  position: relative;
}
.fp-progress-fill::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: progressShine 2s ease-in-out infinite;
}
@keyframes progressShine { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

/* ============================================================
   SKELETON LOADING
   ============================================================ */
.fp-skeleton {
  background: linear-gradient(90deg, var(--surface) 25%, rgba(255,255,255,0.08) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: fpShimmer 1.5s ease-in-out infinite;
  border-radius: 8px; color: transparent !important;
}
.fp-skeleton * { visibility: hidden; }
@keyframes fpShimmer { to { background-position: -200% 0; } }

/* ============================================================
   LIVE PULSE
   ============================================================ */
.fp-live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--success); position: relative; display: inline-block;
}
.fp-live-dot::before {
  content: ''; position: absolute; inset: -4px;
  border-radius: 50%; border: 2px solid var(--success);
  animation: fpLivePing 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes fpLivePing { 75%, 100% { transform: scale(2.5); opacity: 0; } }

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transition: opacity var(--duration-reveal) var(--ease-out-expo),
              transform var(--duration-reveal) var(--ease-out-expo);
}
[data-reveal="up"] { transform: translateY(50px); }
[data-reveal="down"] { transform: translateY(-50px); }
[data-reveal="left"] { transform: translateX(-60px); }
[data-reveal="right"] { transform: translateX(60px); }
[data-reveal="scale"] { transform: scale(0.85); }
[data-reveal].is-visible { opacity: 1; transform: none; }

[data-stagger] > * {
  opacity: 0; transform: translateY(30px);
  transition: all var(--duration-slow) var(--ease-out-expo);
}
[data-stagger].is-visible > * { opacity: 1; transform: none; }
[data-stagger].is-visible > *:nth-child(1) { transition-delay: 0.04s; }
[data-stagger].is-visible > *:nth-child(2) { transition-delay: 0.1s; }
[data-stagger].is-visible > *:nth-child(3) { transition-delay: 0.16s; }
[data-stagger].is-visible > *:nth-child(4) { transition-delay: 0.22s; }
[data-stagger].is-visible > *:nth-child(5) { transition-delay: 0.28s; }
[data-stagger].is-visible > *:nth-child(6) { transition-delay: 0.34s; }

/* Page entrance stagger */
.fp-page-enter > * {
  opacity: 0; transform: translateY(20px);
  animation: fpEnterStagger 0.6s var(--ease-out-expo) forwards;
}
.fp-page-enter > *:nth-child(1) { animation-delay: 0.05s; }
.fp-page-enter > *:nth-child(2) { animation-delay: 0.1s; }
.fp-page-enter > *:nth-child(3) { animation-delay: 0.15s; }
.fp-page-enter > *:nth-child(4) { animation-delay: 0.2s; }
.fp-page-enter > *:nth-child(5) { animation-delay: 0.25s; }
@keyframes fpEnterStagger { to { opacity: 1; transform: none; } }

/* Hover effects */
.fp-hover-lift { transition: all 0.4s var(--ease-out-expo); }
.fp-hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.2), var(--shadow-glow);
}

.fp-hover-shine { position: relative; overflow: hidden; }
.fp-hover-shine::after {
  content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  transition: left 0.5s ease;
}
.fp-hover-shine:hover::after { left: 100%; }

/* Ripple effect */
.fp-ripple { position: relative; overflow: hidden; }
.fp-ripple-wave {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,0.25);
  transform: scale(0); animation: fpRippleExpand 0.6s ease-out;
  pointer-events: none;
}
@keyframes fpRippleExpand { to { transform: scale(4); opacity: 0; } }
@keyframes rippleExpand { to { transform: scale(4); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-stagger] > *, .fp-page-enter > * {
    opacity: 1 !important; transform: none !important;
    transition: none !important; animation: none !important;
  }
}

/* ============================================================
   QUICK ACTIONS
   ============================================================ */
.fp-actions-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  margin-bottom: 2rem;
}
.fp-action-item {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 16px 8px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--border);
  transition: all 0.3s ease; cursor: pointer; text-decoration: none; color: var(--text-1);
}
.fp-action-item:hover {
  background: var(--surface-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  color: var(--text-1);
}
.fp-action-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.12), rgba(var(--accent-rgb), 0.08));
  color: var(--primary-light); font-size: 1.2rem;
}
.fp-action-label { font-size: 0.75rem; font-weight: 600; color: var(--text-2); }
@media (max-width: 768px) { .fp-actions-grid { grid-template-columns: repeat(2, 1fr); } }

/* ============================================================
   CHART CONTAINER
   ============================================================ */
.fp-chart-container {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem;
  margin-bottom: 1.5rem;
}

/* ============================================================
   ADDITIONAL MOBILE REFINEMENTS
   ============================================================ */
@media (max-width: 768px) {
  .fp-hero { padding: 100px 1.25rem 60px; min-height: auto; }
  .fp-hero h1 { font-size: clamp(1.8rem, 7vw, 2.5rem); }
  .fp-hero p { font-size: 1rem; }
  .fp-hero-actions { gap: 10px; }
  .fp-hero-actions .fp-btn { width: 100%; justify-content: center; }
  .fp-section { padding: 60px 1.25rem; }
  .fp-section-title { font-size: clamp(1.5rem, 5vw, 2rem); }
  .fp-cta { padding: 60px 1.5rem; margin: 0 1rem; }
  .fp-footer { padding: 60px 1.25rem 24px; }
  .fp-footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
  .fp-hero { padding: 90px 1rem 50px; }
  .fp-section { padding: 40px 1rem; }
  .fp-btn-lg { padding: 12px 20px; font-size: 0.9rem; }
  .fp-bento-item { padding: 1.25rem; }
  .fp-step { padding: 1.25rem; }
}
