/* =============================================
   NOM CREDITS — Global Styles
   Dark neon premium SaaS aesthetic
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

/* === TOKENS === */
:root {
  /* Lightened slightly from the original near-black palette so the app
     is easier on the eyes over long sessions, while staying a dark theme. */
  --bg-0: #0b0c12;
  --bg-1: #13141d;
  --bg-2: #191b27;
  --bg-3: #222433;

  --glass: rgba(255,255,255,0.055);
  --glass-border: rgba(255,255,255,0.11);
  --glass-hover: rgba(255,255,255,0.09);

  /* NOM Brand Colors */
  --neon-pink: #0e7ea1;
  --neon-purple: #1497bc;
  --neon-blue: #39b7d9;
  --neon-cyan: #8ad7ec;

  /* Stronger premium gradients */
  --grad-primary:
  linear-gradient(
  135deg,
  var(--neon-purple) 0%,
  var(--neon-blue) 45%,
  var(--neon-cyan) 100%
  );

  --grad-glow:
  radial-gradient(
  circle at top,
  rgba(20,151,188,0.28),
  rgba(57,183,217,0.12) 35%,
  transparent 72%
  );

  --grad-text:
  linear-gradient(
  115deg,
  #7fdcf5 0%,
  #1497bc 45%,
  #b8f06d 75%,
  #ffbf1a 100%
  );

  --text-0: #ffffff;
  --text-1: rgba(255,255,255,0.8);
  --text-2: rgba(255,255,255,0.56);
  --text-3: rgba(255,255,255,0.36);

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

  --shadow-glow: 0 0 40px rgba(20,151,188,0.28);
  --shadow-card: 0 8px 32px rgba(0,0,0,0.4);
  --shadow-btn: 0 10px 30px rgba(20,151,188,0.28);

  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-body);
  background: var(--bg-0);
  color: var(--text-1);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* === NOISE TEXTURE OVERLAY === */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.6;
}

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-1); }
::-webkit-scrollbar-thumb { background: var(--neon-purple); border-radius: 3px; }

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1, h2, h3, h4, h5 { font-family: var(--font-display); font-weight: 700; color: var(--text-0); line-height: 1.15; }

.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* =============================================
   LAYOUT UTILITIES
   ============================================= */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: var(--transition);
}

.btn:hover::after { background: rgba(255,255,255,0.08); }

.btn-primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: var(--shadow-btn);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(20,151,188,0.38);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: var(--glass);
  color: var(--text-1);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover {
  background: var(--glass-hover);
  border-color: rgba(255,255,255,0.15);
  color: var(--text-0);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text-0);
  border: 1px solid var(--glass-border);
}
.btn-outline:hover {
  border-color: var(--neon-purple);
  background: rgba(20,151,188,0.1);
  transform: translateY(-1px);
}

.btn-lg { padding: 16px 36px; font-size: 1rem; }
.btn-sm { padding: 9px 20px; font-size: 0.82rem; }
.btn-icon { padding: 12px; border-radius: 50%; width: 44px; height: 44px; justify-content: center; }

/* Loading state */
.btn.loading { pointer-events: none; opacity: 0.7; }

/* =============================================
   CARDS
   ============================================= */
.card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(20px);
  transition: var(--transition);
}

.card:hover {
  border-color: rgba(20,151,188,0.35);
  background: var(--glass-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.card-glow {
  position: relative;
  overflow: hidden;
}

.card-glow::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: var(--grad-primary);
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: var(--transition);
}

.card-glow:hover::before { opacity: 0.5; }

/* =============================================
   BADGES
   ============================================= */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-purple { background: rgba(20,151,188,0.2); color: #bef264; border: 1px solid rgba(20,151,188,0.3); }
.badge-pink { background: rgba(251,171,3,0.15); color: #fbbf24; border: 1px solid rgba(251,171,3,0.25); }
.badge-green { background: rgba(16,185,129,0.15); color: #34d399; border: 1px solid rgba(16,185,129,0.25); }
.badge-blue { background: rgba(37,99,235,0.15); color: #60a5fa; border: 1px solid rgba(37,99,235,0.25); }

/* =============================================
   HEADER
   ============================================= */
#header-container {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

/* Floating pill navbar — a rounded, blurred capsule that hovers with a
   gap above the page rather than a hard edge-to-edge bar. Height (60px)
   + top margin (8px) intentionally add up to the old 68px bar height so
   every page's hardcoded header-offset (margin-top:68px, padding-top:68px,
   etc.) still lines up without needing to be touched individually. */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 10px 0 22px;
  height: 60px;
  margin: 8px auto 0;
  width: calc(100% - 32px);
  max-width: 1120px;
  border-radius: 999px;
  background: rgba(12,13,24,0.62);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.04);
  transition: var(--transition);
  pointer-events: auto;
}

.header.scrolled {
  background: rgba(8,9,18,0.82);
  border-color: rgba(20,151,188,0.3);
  box-shadow: 0 10px 36px rgba(0,0,0,0.45), 0 0 0 1px rgba(20,151,188,0.12), inset 0 1px 0 rgba(255,255,255,0.05);
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text-0);
}

.header-logo .logo-icon {
  width: 34px; height: 34px;
  background: var(--grad-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 0 20px rgba(20,151,188,0.35);
}

.header-logo .logo-text span { background: var(--grad-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.header-nav { display: flex; align-items: center; gap: 4px; }

.nav-link {
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-2);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

.nav-link:hover { color: var(--text-0); background: var(--glass); }
.nav-link.active { color: var(--text-0); }

.header-actions { display: flex; align-items: center; gap: 12px; }

/* Mobile-only Dashboard/Log In button (see the max-width:700px block for
   its visible layout) — hidden on desktop, where .header-actions already
   covers this. */
.header-mobile-account { display: none; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text-1); border-radius: 2px; transition: var(--transition); }

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 68px 0 0;
  background: rgba(5,5,8,0.98);
  backdrop-filter: blur(20px);
  padding: 20px;
  padding-top: 24px;
  flex-direction: column;
  gap: 8px;
  z-index: 999;
  border-top: 1px solid var(--glass-border);
}

.mobile-nav.open { display: flex; }
.mobile-nav .btn {
  width: 100%;
  justify-content: center;
}
.mobile-nav .nav-link { padding: 14px 20px; font-size: 1rem; border-radius: var(--radius-md); }

/* Floating bottom tab bar — replaces the hamburger dropdown on phones.
   Apple-style translucent capsule anchored above the home indicator,
   showing the handful of destinations people actually need one thumb-tap
   away. Hidden on desktop; hidden on dashboard/admin (those already have
   their own off-canvas sidebar + floating toggle for in-app navigation). */
.mobile-tabbar {
  display: none;
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 1000;
  pointer-events: auto;
  gap: 2px;
  padding: 6px;
  border-radius: 28px;
  background: rgba(12,13,24,0.72);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 10px 32px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.05);
  padding-bottom: calc(6px + env(safe-area-inset-bottom));
}

.tabbar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 60px;
  padding: 7px 4px 6px;
  border-radius: 20px;
  text-decoration: none;
  color: var(--text-3);
  transition: var(--transition);
}

.tabbar-icon { font-size: 1.15rem; line-height: 1; }
.tabbar-label { font-size: 0.62rem; font-weight: 600; letter-spacing: 0.01em; }

.tabbar-item:hover { color: var(--text-1); }
.tabbar-item.active {
  color: var(--text-0);
  background: rgba(20,151,188,0.18);
  box-shadow: inset 0 0 0 1px rgba(20,151,188,0.3);
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  border-top: 1px solid var(--glass-border);
  padding: 60px 0 32px;
  background: var(--bg-1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text-0);
  text-decoration: none;
  margin-bottom: 14px;
}

.footer-brand .footer-logo .logo-icon {
  width: 30px; height: 30px;
  background: var(--grad-primary);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
}

.footer-tagline { font-size: 0.88rem; color: var(--text-2); line-height: 1.7; max-width: 260px; }

.footer-col h4 { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-2); margin-bottom: 16px; }

.footer-col a {
  display: block;
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 10px;
  transition: var(--transition);
}

.footer-col a:hover { color: var(--text-0); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--glass-border);
  font-size: 0.82rem;
  color: var(--text-3);
}

/* =============================================
   HERO
   ============================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 68px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
}

.hero-orb-1 {
  width: 600px;
  height: 600px;
  background:
    radial-gradient(
      circle,
      rgba(20,151,188,0.62),
      transparent 68%
    );
  top: -100px;
  right: -100px;
  animation: float1 8s ease-in-out infinite;
}

.hero-orb-2 {
  width: 400px;
  height: 400px;
  background:
    radial-gradient(
      circle,
      rgba(57,183,217,0.42),
      transparent 68%
    );
  bottom: -50px;
  left: -50px;
  animation: float2 10s ease-in-out infinite;
}

.hero-orb-3 {
  width: 300px;
  height: 300px;
  background:
    radial-gradient(
      circle,
      rgba(138,215,236,0.30),
      transparent 68%
    );
  top: 40%;
  left: 40%;
  animation: float1 12s ease-in-out infinite reverse;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(20,151,188,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(20,151,188,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  /* Wider cap than the shared .container class (1160px) — with the
     balance card (420px) plus gap taking a fixed chunk, 1160px left too
     little room for the hero text at full size, forcing "Experiences"
     to break mid-word. 1400px gives both columns their natural width. */
  max-width: 1400px;
}

.hero-content {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 780px;
  padding-top: 40px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 100px;
  background: rgba(20,151,188,0.14);
  border: 1px solid rgba(57,183,217,0.28);
  font-size: 0.8rem;
  font-weight: 600;
  color: #7fdcf5;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 28px;
  animation: fadeUp 0.8s ease both;
}

.hero-eyebrow-dot {
  width: 6px; height: 6px;
  background: var(--neon-purple);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--neon-purple);
  animation: pulse 2s infinite;
}

.hero-title {
  font-size: clamp(2.6rem, 4.6vw, 4.4rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-0);
  margin-bottom: 24px;
  animation: fadeUp 0.8s 0.15s ease both;
  overflow-wrap: break-word;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-2);
  line-height: 1.75;
  max-width: 560px;
  margin-bottom: 40px;
  font-weight: 300;
  animation: fadeUp 0.8s 0.3s ease both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeUp 0.8s 0.45s ease both;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--glass-border);
  animation: fadeUp 0.8s 0.6s ease both;
}

.hero-stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 4px;
}

.hero-stat-label { font-size: 0.82rem; color: var(--text-2); }

/* Hero floating card (right side on desktop) — a true flex sibling of
   .hero-content now, rather than being absolutely positioned over it, so
   the two columns can never overlap regardless of viewport width, browser
   zoom, or font-rendering variance. */
.hero-visual {
  position: relative;
  z-index: 1;
  flex: 0 0 420px;
  width: 420px;
  animation: fadeLeft 1s 0.3s ease both;
}

.hero-card-float {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 28px;
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.hero-card-float::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad-primary);
}

.wallet-preview {
  margin-bottom: 20px;
}

.wallet-preview-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-2); margin-bottom: 8px; font-weight: 600; }

.wallet-preview-balance {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.wallet-preview-sub { font-size: 0.82rem; color: var(--text-2); margin-top: 6px; }

.tx-list { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }

.tx-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  font-size: 0.85rem;
}

.tx-item-left { display: flex; align-items: center; gap: 12px; }

.tx-icon {
  width: 34px; height: 34px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}

.tx-icon-green { background: rgba(16,185,129,0.15); }
.tx-icon-purple { background: rgba(20,151,188,0.15); }
.tx-icon-pink { background: rgba(251,171,3,0.15); }

.tx-name { color: var(--text-1); font-weight: 500; }
.tx-date { font-size: 0.75rem; color: var(--text-3); }
.tx-amount { font-weight: 700; font-family: var(--font-display); }
.tx-amount.positive { color: #34d399; }
.tx-amount.negative { color: #f87171; }

/* =============================================
   FEATURES SECTION
   ============================================= */
.features-header { text-align: center; max-width: 560px; margin: 0 auto 64px; }

.section-eyebrow {
  display: inline-block;
  padding: 5px 16px;
  border-radius: 100px;
  background: rgba(20,151,188,0.15);
  border: 1px solid rgba(20,151,188,0.3);
  font-size: 0.75rem;
  font-weight: 700;
  color: #bef264;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 16px; }

.section-subtitle { font-size: 1rem; color: var(--text-2); line-height: 1.75; }

.feature-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: var(--grad-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.feature-card:hover { border-color: rgba(20,151,188,0.3); transform: translateY(-4px); box-shadow: var(--shadow-glow); }
.feature-card:hover::after { transform: scaleX(1); }

.feature-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
  position: relative;
}

.feature-icon-1 { background: rgba(251,171,3,0.15); box-shadow: 0 0 20px rgba(251,171,3,0.2); }
.feature-icon-2 { background: rgba(20,151,188,0.15); box-shadow: 0 0 20px rgba(20,151,188,0.2); }
.feature-icon-3 { background: rgba(37,99,235,0.15); box-shadow: 0 0 20px rgba(37,99,235,0.2); }
.feature-icon-4 { background: rgba(6,182,212,0.15); box-shadow: 0 0 20px rgba(6,182,212,0.2); }
.feature-icon-5 { background: rgba(16,185,129,0.15); box-shadow: 0 0 20px rgba(16,185,129,0.2); }
.feature-icon-6 { background: rgba(251,191,36,0.15); box-shadow: 0 0 20px rgba(251,191,36,0.2); }

.feature-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; color: var(--text-0); }
.feature-desc { font-size: 0.9rem; color: var(--text-2); line-height: 1.7; }

/* =============================================
   HOW IT WORKS
   ============================================= */
.how-section { background: var(--bg-1); }

.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--glass-border); border-radius: var(--radius-xl); overflow: hidden; }

.step {
  background: var(--bg-1);
  padding: 40px 28px;
  position: relative;
  transition: var(--transition);
}

.step:hover { background: var(--glass); }

.step-number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.25;
  line-height: 1;
  margin-bottom: 20px;
}

.step-title { font-size: 1rem; font-weight: 700; color: var(--text-0); margin-bottom: 8px; }
.step-desc { font-size: 0.88rem; color: var(--text-2); line-height: 1.65; }

/* =============================================
   CTA BAND
   ============================================= */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: 96px 0;
  text-align: center;
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-glow);
  pointer-events: none;
}

.cta-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.2;
}

.cta-orb-1 { width: 400px; height: 400px; background: var(--neon-purple); top: -100px; left: 50%; transform: translateX(-50%); }

.cta-title { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 16px; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-subtitle { font-size: 1.05rem; color: var(--text-2); margin-bottom: 36px; }

/* =============================================
   DASHBOARD
   ============================================= */
.dashboard-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: calc(100vh - 68px);
  margin-top: 68px;
  gap: 20px;
  padding-right: 20px;
}

/* Floating "bubble" sidebar card — same rounded, elevated treatment as
   the mobile off-canvas panel, just persistently visible on desktop. */
.sidebar {
  background: var(--bg-1);
  border: 1px solid var(--glass-border);
  border-radius: 22px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
  box-sizing: border-box;
  position: sticky;
  top: 88px;
  max-height: calc(100vh - 108px);
  margin: 20px 0 20px 20px;
  overflow: hidden;
  /* .sidebar-scroll used `height:100%` to fill this, but a percentage
     height only resolves against a parent with a *definite* height —
     this parent's height is `auto` (only max-height is set), so per spec
     that 100% computed to `auto` too. In practice desktop still scrolled
     (Chrome's sticky-positioning layout happened to give it a usable
     height there), but on mobile — position:fixed + max-height instead of
     sticky — it didn't, so .sidebar-scroll just grew to fit all its
     content with nothing left to scroll, and the outer overflow:hidden
     silently clipped the rest with no scrollbar at all. Flex + min-height:0
     on the child (below) is the reliable fix in every layout mode. */
  display: flex;
  flex-direction: column;
}

/* Actual scrolling happens in this inner wrapper so the custom scrollbar
   thumb stays clipped inside the sidebar's rounded corners, instead of
   poking out past the card edges. */
.sidebar-scroll {
  flex: 1 1 auto;
  min-height: 0;
  padding: 32px 20px;
  box-sizing: border-box;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  display: flex;
  flex-direction: column;
  /* Some links inside are revealed (display:none -> '') by JS role gates
     right after paint; without this, some browsers' scroll anchoring
     shifts scrollTop to compensate and the sidebar looks like it opened
     mid-scroll instead of at the top. */
  overflow-anchor: none;
}

.sidebar-section { margin-bottom: 32px; }
.sidebar-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-3); padding: 0 12px; margin-bottom: 8px; }

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-2);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
}

.sidebar-link:hover { background: var(--glass); color: var(--text-0); }
.sidebar-link.active { background: rgba(20,151,188,0.15); color: var(--text-0); border: 1px solid rgba(20,151,188,0.2); }
.sidebar-link .icon { font-size: 1.1rem; width: 20px; text-align: center; }

.main-content { padding: 40px; overflow-y: auto; }

.page-header { margin-bottom: 36px; }
.page-title { font-size: 1.8rem; font-weight: 800; margin-bottom: 6px; }
.page-subtitle { color: var(--text-2); font-size: 0.9rem; }

/* Balance Card */
.balance-card {
  background: var(--bg-2);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 36px;
  position: relative;
  overflow: hidden;
  margin-bottom: 28px;
}

.balance-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-primary);
}

.balance-card-bg {
  position: absolute;
  top: -60px; right: -60px;
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(20,151,188,0.15), transparent);
  border-radius: 50%;
  pointer-events: none;
}

.balance-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-2); font-weight: 600; margin-bottom: 10px; }

.balance-amount {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 6px;
}

.balance-currency { font-size: 1rem; font-weight: 500; color: var(--text-2); margin-bottom: 20px; }

.balance-meta { display: flex; gap: 24px; }
.balance-meta-item { }
.balance-meta-label { font-size: 0.75rem; color: var(--text-3); margin-bottom: 2px; }
.balance-meta-value { font-size: 0.9rem; color: var(--text-1); font-weight: 500; }

/* Stats Row */
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 28px; }

.stat-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  transition: var(--transition);
  /* Icon-left, value+label-right — a stacked icon/value/label column left
     a lot of dead vertical space in a card this wide on desktop. */
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-card:hover { border-color: rgba(20,151,188,0.3); transform: translateY(-2px); }

.stat-card-icon {
  font-size: 1.7rem; margin-bottom: 0; flex-shrink: 0;
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  background: var(--bg-2); border-radius: var(--radius-md);
}
.stat-card-value { font-family: var(--font-display); font-size: 1.7rem; font-weight: 800; color: var(--text-0); margin-bottom: 2px; }
.stat-card-label { font-size: 0.82rem; color: var(--text-2); }

.gnp-cta-card { display: flex; gap: 20px; align-items: center; }
.gnp-cta-icon { font-size: 2.5rem; flex-shrink: 0; }
.gnp-cta-body { flex: 1; }
.gnp-cta-btn { white-space: nowrap; margin-left: auto; flex-shrink: 0; }

/* Profile completion nudge — sits between the stats row and Recent
   Activity on the dashboard. Deliberately subtle: a thin accent border and
   a faint tinted background rather than a loud full-color block, so it
   catches the eye without competing with the balance card above it. */
.profile-completion-banner {
  display: block;
  background: linear-gradient(135deg, rgba(20,151,188,0.08), rgba(57,183,217,0.04));
  border: 1px solid rgba(20,151,188,0.22);
  border-radius: var(--radius-lg);
  padding: 16px 22px;
  margin-bottom: 28px;
  text-decoration: none;
  transition: var(--transition);
}
.profile-completion-banner:hover { border-color: rgba(20,151,188,0.4); transform: translateY(-1px); }

.profile-completion-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}
.profile-completion-title { font-size: 0.92rem; font-weight: 700; color: var(--text-0); }
.profile-completion-sub { font-size: 0.8rem; color: var(--text-2); margin-top: 2px; }
.profile-completion-cta {
  font-size: 0.82rem; font-weight: 600; color: #39b7d9;
  white-space: nowrap; flex-shrink: 0;
}

.profile-completion-track { height: 5px; background: rgba(255,255,255,0.08); border-radius: 99px; overflow: hidden; }
.profile-completion-fill { height: 100%; background: var(--grad-primary); border-radius: 99px; transition: width 0.6s ease; }

@media (max-width: 640px) {
  .profile-completion-banner { padding: 14px 16px; margin-bottom: 20px; }
  .profile-completion-top { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* Transactions Table */
.transactions-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  padding: 0 28px 8px;
}

.transactions-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0 18px;
  border-bottom: 1px solid var(--glass-border);
}

.transactions-header h3 { font-size: 1rem; font-weight: 700; }

.tx-table-row {
  display: flex;
  align-items: center;
  padding: 18px 28px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: var(--transition);
}

.tx-table-row:last-child { border-bottom: none; }
.tx-table-row:hover { background: rgba(255,255,255,0.02); }

.tx-table-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  margin-right: 16px;
  flex-shrink: 0;
}

.tx-table-info { flex: 1; }
.tx-table-name { font-size: 0.9rem; font-weight: 600; color: var(--text-0); margin-bottom: 2px; }
.tx-table-date { font-size: 0.78rem; color: var(--text-3); }
.tx-table-amount { font-family: var(--font-display); font-size: 1rem; font-weight: 700; }
.tx-table-amount.credit { color: #34d399; }
.tx-table-amount.debit { color: #f87171; }

/* User Info Card */
.user-info-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}

.user-avatar {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--grad-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: white;
  font-family: var(--font-display);
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(20,151,188,0.4);
}

.user-info-name { font-size: 1.1rem; font-weight: 700; color: var(--text-0); margin-bottom: 4px; }
.user-info-email { font-size: 0.85rem; color: var(--text-2); margin-bottom: 10px; }

/* =============================================
   EVENTS PAGE
   ============================================= */
.events-hero {
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.events-hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(20,151,188,0.12), transparent);
}

.event-cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }

.event-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
}

.event-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-glow); border-color: rgba(20,151,188,0.35); }

/* Past events (already happened) stay in the list but read as "done" —
   dimmed, no hover lift, muted text — rather than disappearing outright. */
.event-card-past { opacity: 0.5; filter: grayscale(0.6); }
.event-card-past:hover { transform: none; box-shadow: none; border-color: var(--glass-border); }

.event-card-image {
  width: 100%;
  height: 140px;
  object-fit: contain;
  background: var(--bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  position: relative;
  overflow: hidden;
}

.event-card-image-placeholder {
  width: 100%;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  position: relative;
  overflow: hidden;
}

.event-image-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.6;
}

.event-card-body { padding: 18px; }

.event-card-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-2);
  margin-bottom: 8px;
  font-weight: 500;
}

.event-card-name { font-size: 1.05rem; font-weight: 700; color: var(--text-0); margin-bottom: 8px; line-height: 1.35; }
.event-card-name-clamp {
  /* Intentionally NOT clamped/truncated — event names must always be fully
     readable on the grid card, even if it makes the card a bit taller. */
  overflow: visible;
}
.event-view-link { font-size: 0.8rem; color: var(--neon-blue, #39b7d9); font-weight: 600; white-space: nowrap; }
.event-card-desc { font-size: 0.88rem; color: var(--text-2); line-height: 1.65; margin-bottom: 6px; }
.event-card-desc.clamped {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.event-card-desc-toggle {
  background: none; border: none; padding: 0; cursor: pointer;
  color: var(--neon-blue, #39b7d9); font-size: 0.8rem; font-weight: 600;
  margin-bottom: 12px; display: inline-block;
}

.event-card-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.event-meta-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: var(--bg-2);
  border-radius: 100px;
  font-size: 0.78rem;
  color: var(--text-2);
  font-weight: 500;
  border: 1px solid var(--glass-border);
}

.event-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid var(--glass-border);
}

.event-credits-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #bef264;
}

/* =============================================
   LOGIN PAGE
   ============================================= */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  position: relative;
  overflow: hidden;
}

.login-bg-orb-1 { position: absolute; width: 500px; height: 500px; background: radial-gradient(circle, rgba(20,151,188,0.24), transparent); top: -100px; right: -100px; border-radius: 50%; filter: blur(80px); }
.login-bg-orb-2 { position: absolute; width: 300px; height: 300px; background: radial-gradient(circle, rgba(57,183,217,0.18), transparent); bottom: -50px; left: -50px; border-radius: 50%; filter: blur(60px); }

.login-card {
  background: var(--bg-1);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 48px;
  width: 100%;
  max-width: 440px;
  position: relative;
  z-index: 1;
  box-shadow: 0 32px 80px rgba(0,0,0,0.5);
}

.login-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-primary);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.login-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-0);
  text-decoration: none;
  margin-bottom: 32px;
}

.login-logo .logo-icon {
  width: 40px; height: 40px;
  background: var(--grad-primary);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 0 20px rgba(20,151,188,0.35);
}

.login-title { font-size: 1.6rem; font-weight: 800; margin-bottom: 8px; }
.login-subtitle { font-size: 0.9rem; color: var(--text-2); margin-bottom: 32px; line-height: 1.65; }

.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--text-1); margin-bottom: 8px; letter-spacing: 0.02em; }

.form-input {
  width: 100%;
  padding: 13px 16px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-0);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.form-input:focus {
  border-color: var(--neon-purple);
  background: rgba(20,151,188,0.06);
  box-shadow: 0 0 0 3px rgba(20,151,188,0.12);
}

.form-input::placeholder { color: var(--text-3); }

.form-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  color: var(--text-3);
  font-size: 0.82rem;
}

.form-divider::before, .form-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--glass-border);
}

.google-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 13px 20px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-1);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
}

.google-btn:hover { background: var(--glass-hover); color: var(--text-0); border-color: rgba(255,255,255,0.15); transform: translateY(-1px); }

.google-icon {
  width: 20px; height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%23EA4335' d='M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z'/%3E%3Cpath fill='%234285F4' d='M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z'/%3E%3Cpath fill='%23FBBC05' d='M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z'/%3E%3Cpath fill='%2334A853' d='M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.otp-notice { font-size: 0.82rem; color: var(--text-2); text-align: center; margin-top: 16px; line-height: 1.6; }
.otp-notice a { color: #7fdcf5; text-decoration: none; }

/* OTP Input */
.otp-inputs { display: flex; gap: 10px; justify-content: center; margin: 20px 0; }
.otp-input {
  width: 50px; height: 56px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-0);
  font-size: 1.4rem;
  font-weight: 700;
  text-align: center;
  outline: none;
  transition: var(--transition);
  font-family: var(--font-display);
}

.otp-input:focus { border-color: var(--neon-purple); box-shadow: 0 0 0 3px rgba(20,151,188,0.15); }

/* =============================================
   CONTACT PAGE
   ============================================= */
.contact-page { padding: 120px 0 80px; }

.contact-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 60px; align-items: start; }

.contact-info h2 { font-size: 2rem; margin-bottom: 16px; }
.contact-info p { color: var(--text-2); line-height: 1.75; margin-bottom: 32px; }

.contact-item { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.contact-item-icon { width: 44px; height: 44px; border-radius: var(--radius-md); background: rgba(20,151,188,0.15); border: 1px solid rgba(20,151,188,0.2); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.contact-item-label { font-size: 0.78rem; color: var(--text-2); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.contact-item-value { font-size: 0.92rem; color: var(--text-0); }

.contact-form-card {
  background: var(--bg-1);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 40px;
}

.contact-form-card h3 { font-size: 1.3rem; margin-bottom: 6px; }
.contact-form-card p { font-size: 0.88rem; color: var(--text-2); margin-bottom: 28px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-textarea { resize: vertical; min-height: 120px; }

.form-select {
  width: 100%;
  padding: 13px 16px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-0);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(255,255,255,0.3)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.form-select:focus { border-color: var(--neon-purple); box-shadow: 0 0 0 3px rgba(20,151,188,0.12); }
.form-select option { background: var(--bg-2); }

/* Custom "View As" dropdown — a native <select>'s open list is rendered by
   the OS/browser and can't be given rounded corners or match the rest of
   the sidebar's card styling, so the owner-only role switcher uses this
   button + floating panel instead. */
.viewas-dropdown { position: relative; }
.viewas-dropdown-trigger {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 11px 14px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-0);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}
.viewas-dropdown-trigger:hover { border-color: rgba(20,151,188,0.35); }
.viewas-dropdown-trigger .chevron { transition: transform 0.15s ease; flex-shrink: 0; opacity: 0.6; }
.viewas-dropdown.open .viewas-dropdown-trigger .chevron { transform: rotate(180deg); }

/* Static in-flow panel, not a floating overlay: it pushes the rest of the
   sidebar's own content down and is revealed by the sidebar's own scroll
   (.sidebar-scroll already scrolls), rather than getting its own inner
   scrollbar or needing to escape the sidebar's clipping via position:fixed.
   That was the earlier approach and it caused more problems than it
   solved (clipped edges, mis-placed floating panel, scroll-to-close
   fighting the panel's own internal scroll) — simplest fix is to not
   float it at all. */
.viewas-dropdown-menu {
  display: none;
  margin-top: 6px;
  background: var(--bg-1);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  padding: 6px;
}
.viewas-dropdown.open .viewas-dropdown-menu { display: block; }

.viewas-dropdown-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 9px 12px;
  border-radius: 8px;
  border: none;
  background: none;
  color: var(--text-1);
  font-family: var(--font-body);
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}
.viewas-dropdown-item:hover { background: var(--glass); color: var(--text-0); }
.viewas-dropdown-item.active { background: rgba(20,151,188,0.15); color: var(--text-0); font-weight: 600; }

.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}

.form-success-icon { font-size: 3rem; margin-bottom: 16px; }
.form-success h3 { margin-bottom: 8px; }
.form-success p { color: var(--text-2); font-size: 0.9rem; }

/* =============================================
   LEGAL PAGES
   ============================================= */
.legal-page { padding: 120px 0 80px; }

.legal-header { margin-bottom: 48px; padding-bottom: 32px; border-bottom: 1px solid var(--glass-border); }
.legal-header h1 { font-size: 2.4rem; margin-bottom: 8px; }
.legal-header p { color: var(--text-2); }

.legal-content h2 { font-size: 1.3rem; font-weight: 700; color: var(--text-0); margin: 36px 0 12px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.05); }
.legal-content h2:first-child { border-top: none; }
.legal-content p { color: var(--text-2); line-height: 1.8; margin-bottom: 14px; }
.legal-content ul { color: var(--text-2); line-height: 1.8; margin-bottom: 14px; padding-left: 24px; }
.legal-content ul li { margin-bottom: 6px; }
.legal-max { max-width: 760px; }

/* =============================================
   TOAST NOTIFICATIONS
   ============================================= */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9000; display: flex; flex-direction: column; gap: 10px; }

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--bg-2);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  font-size: 0.88rem;
  color: var(--text-1);
  max-width: 360px;
  animation: slideUp 0.3s ease;
  backdrop-filter: blur(20px);
}

.toast.success { border-color: rgba(16,185,129,0.3); }
.toast.error { border-color: rgba(239,68,68,0.3); }
.toast.warning { border-color: rgba(245,158,11,0.3); }
.toast-icon { font-size: 1.1rem; }

/* =============================================
   ALERTS & STATUS
   ============================================= */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  line-height: 1.55;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.alert-info { background: rgba(37,99,235,0.1); border: 1px solid rgba(37,99,235,0.25); color: #93c5fd; }
.alert-success { background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.25); color: #6ee7b7; }
.alert-warning { background: rgba(251,191,36,0.1); border: 1px solid rgba(251,191,36,0.25); color: #fcd34d; }

/* =============================================
   EMPTY / LOADING STATES
   ============================================= */
.empty-state { text-align: center; padding: 60px 20px; }
.empty-icon { font-size: 3rem; margin-bottom: 16px; opacity: 0.5; }
.empty-title { font-size: 1rem; font-weight: 600; color: var(--text-1); margin-bottom: 8px; }
.empty-desc { font-size: 0.88rem; color: var(--text-2); }

.skeleton {
  background: linear-gradient(90deg, var(--bg-2) 25%, var(--bg-3) 50%, var(--bg-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes partnersScroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeLeft { from { opacity: 0; transform: translateX(40px) translateY(-50%); } to { opacity: 1; transform: translateX(0) translateY(-50%); } }
@keyframes float1 { 0%, 100% { transform: translate(0, 0); } 33% { transform: translate(-20px, 20px); } 66% { transform: translate(20px, -15px); } }
@keyframes float2 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(15px, -20px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes glow { 0%, 100% { box-shadow: 0 0 20px rgba(20,151,188,0.3); } 50% { box-shadow: 0 0 40px rgba(20,151,188,0.6); } }

/* Page fade in */
.page-enter { animation: fadeIn 0.4s ease both; }

/* =============================================
   TESTIMONIAL / SOCIAL PROOF
   ============================================= */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.testimonial-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.testimonial-stars { color: #fbbf24; font-size: 0.85rem; letter-spacing: 2px; margin-bottom: 14px; }
.testimonial-text { font-size: 0.9rem; color: var(--text-1); line-height: 1.7; margin-bottom: 20px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--grad-primary); display: flex; align-items: center; justify-content: center; font-size: 0.85rem; font-weight: 700; color: white; font-family: var(--font-display); }
.testimonial-name { font-size: 0.88rem; font-weight: 600; color: var(--text-0); }
.testimonial-role { font-size: 0.78rem; color: var(--text-2); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1300px) {
  .hero-visual { display: none; }
}

@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .testimonials { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .dashboard-layout { grid-template-columns: 1fr; }

  /* Off-canvas dashboard sidebar — was previously just `display:none`
     with no alternate way to switch tabs or sign out on mobile. Now it
     slides in from the left (mirrors .admin-sidebar's mobile pattern)
     and is toggled by a floating button. */
  .sidebar {
    position: fixed;
    top: 76px;
    left: 10px;
    width: 260px;
    max-height: calc(100vh - 96px);
    height: auto;
    margin: 0;
    box-sizing: border-box;
    overflow: hidden;
    border-radius: 22px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 300;
  }
  .sidebar.open { transform: translateX(0); }

  .main-content { padding: 24px 18px 100px; }

  /* Top-right circular menu toggle, matching the admin dashboard pattern. */
  .mobile-dash-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: calc(16px + env(safe-area-inset-top));
    right: 16px;
    width: 44px;
    height: 44px;
    padding: 0;
    cursor: pointer;
    color: var(--text-0);
    font-family: var(--font-body);
    z-index: 1010;
    border: none;
    border-radius: 50%;
    /* Clip the ::before glass-fill layer (which uses backdrop-filter) to
       this circle — some browsers don't confine a blurred backdrop-filter
       to the border-radius on its own, so it was bleeding a blue halo out
       past the button's edge. */
    overflow: hidden;
    background: var(--grad-primary);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    /* Plain <button> gets the browser's default blue focus outline after
       being tapped/clicked — a square-ish ring that pokes out past this
       circular button. Suppress it in favor of the box-shadow ring below,
       which respects the circle. */
    outline: none;
    -webkit-tap-highlight-color: transparent;
  }
  .mobile-dash-toggle:focus-visible {
    box-shadow: 0 8px 24px rgba(0,0,0,0.4), 0 0 0 3px rgba(20,151,188,0.5);
  }
  .mobile-dash-toggle::before {
    content: '';
    position: absolute;
    inset: 2px;
    border-radius: 50%;
    background: rgba(12,13,24,0.88);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }
  .mobile-dash-toggle svg { position: relative; z-index: 1; color: var(--text-0); }
  .mobile-dash-toggle:active {
    transform: scale(0.92);
    box-shadow: 0 4px 14px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.08);
  }

  .sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(6,8,20,0.6);
    z-index: 250;
  }
  .sidebar-backdrop.open { display: block; }

  /* While the off-canvas sidebar is open on mobile, the page behind it
     must not scroll — otherwise a touch/scroll gesture starting over the
     sidebar or backdrop was bleeding through to the dashboard content
     underneath. Toggled by JS alongside .sidebar.open.
     Locking `body` itself (rather than the actual scrolling element) was
     the wrong target — this layout's scrollable containers are
     .main-content and .sidebar-scroll, not the body — and on some mobile
     browsers an overflow:hidden body also suppresses touch scrolling in
     nested fixed-position panels, which broke scrolling inside the
     sidebar itself. Lock .main-content specifically instead. */
  body.sidebar-locked .main-content { overflow: hidden; touch-action: none; }

  .stats-row { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

@media (min-width: 901px) {
  .mobile-dash-toggle { display: none; }
  .sidebar-backdrop { display: none; }
}

@media (max-width: 700px) {
  /* Shrink the hero headline on phones — the clamp() floor (2.6rem) was
     still wide enough for a long word like "Experiences" to press right
     up against the screen edge on many phone widths. */
  .hero-title {
    font-size: clamp(1.85rem, 8vw, 2.4rem);
  }

  /* On mobile the header shrinks to just the logo — nav links, auth
     actions, and the dashboard link all move down into .mobile-tabbar
     so they're reachable with a thumb instead of a hamburger dropdown. */
  .header {
    padding: 0 18px;
    height: 56px;
    width: calc(100% - 24px);
  }

  .header-nav {
    display: none;
  }

  .header-actions {
    display: none;
  }

  .header-logo {
    gap: 8px;
    flex-shrink: 1;
    min-width: 0;
  }

  .logo-text {
    font-size: 1rem;
    line-height: 1;
  }

  .hamburger { display: none; }

  .header-logo-icon { height: 36px; }

  /* Dashboard access on mobile — a compact icon button in the header's
     top-right, next to the logo, instead of taking a tabbar slot. Hidden
     again by JS on sidebar-shell pages, where the sidebar's own toggle
     already occupies this corner. */
  .header-mobile-account {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
    background: var(--grad-primary); color: #fff; text-decoration: none;
    font-size: 1rem; box-shadow: 0 4px 14px rgba(0,0,0,0.3);
  }

  body:not([data-page="dashboard"]):not([data-page="admin"]):not([data-page="checkin"]):not([data-page="claim-reward"]) {
    padding-bottom: 92px;
  }

  body:not([data-page="dashboard"]):not([data-page="admin"]):not([data-page="checkin"]):not([data-page="claim-reward"]) .mobile-tabbar {
    display: flex;
  }

  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .section { padding: 64px 0; }
  .steps-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .main-content { padding: 24px 20px; }
  .login-card { padding: 32px 24px; }
  .contact-form-card { padding: 28px 20px; }

  /* Mobile wallet — everything on the dashboard's overview tab was sized
     for desktop and looked oversized/cramped on a phone. Scale it down. */
  .page-header { margin-bottom: 24px; }
  .page-title { font-size: 1.35rem; }
  .page-subtitle { font-size: 0.82rem; }

  .user-info-card { padding: 18px; gap: 14px; margin-bottom: 18px; }
  .user-avatar { width: 46px; height: 46px; font-size: 0.9rem; }

  .balance-card { padding: 22px; margin-bottom: 18px; }
  .balance-amount { font-size: 2.4rem; }
  .balance-label { font-size: 0.7rem; }
  .balance-currency { font-size: 0.85rem; margin-bottom: 14px; }
  /* Grid instead of a tight flex row, so the three values spread evenly
     across the card's full width instead of bunching up on the left. */
  .balance-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .balance-meta-label { font-size: 0.66rem; }
  .balance-meta-value { font-size: 0.86rem; }

  .stats-row { gap: 10px; margin-bottom: 20px; }
  /* Icon-left, value+label-right layout so each card uses its full width
     instead of a small stack of left-aligned text in a wide, mostly-empty
     card. */
  .stat-card { padding: 16px; display: flex; align-items: center; gap: 14px; }
  .stat-card-icon { font-size: 1.6rem; margin-bottom: 0; }
  .stat-card-value { font-size: 1.3rem; margin-bottom: 2px; }

  /* GNP CTA stacks instead of forcing icon + text + button into one row,
     which was clipping the button on narrow screens. */
  .gnp-cta-card { flex-direction: column; align-items: stretch; text-align: center; gap: 12px; }
  .gnp-cta-btn { margin-left: 0; width: 100%; justify-content: center; }
}
.page-loader {
  position: fixed;
  inset: 0;
  background: #06060f;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  z-index: 9999;
}

.loader-logo {
  font-size: 2.5rem;
  animation: spin 1.2s linear infinite;
}

.loader-text {
  color: var(--text-2);
  font-size: 0.92rem;
}

.btn.loading {
  opacity: 0.7;
  pointer-events: none;
  position: relative;
}

.btn.loading {
  position: relative;
  overflow: hidden;

  opacity: 0.9;
  pointer-events: none;
}

.btn.loading::after {
  content: '';

  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(255,255,255,0.18),
      transparent
    );

  transform: translateX(-100%);

  animation: shimmerLoad 1.2s infinite;
}

@keyframes shimmerLoad {
  100% {
    transform: translateX(100%);
  }
}
.transaction-row {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 18px 0;

  border-top: 1px solid rgba(255,255,255,0.06);
}

.transaction-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.transaction-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-1);
}

.transaction-date {
  font-size: 0.82rem;
  color: var(--text-3);
}

.transaction-amount {
  font-size: 1rem;
  font-weight: 700;
}

.transaction-amount.positive {
  color: #4ade80;
}

.transaction-amount.negative {
  color: #f87171;
}
/* ======================================
   FAQ SECTION
====================================== */

.faq-section {
  position: relative;
}

.faq-list {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.faq-item {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  overflow: hidden;
  backdrop-filter: blur(14px);
  transition: all 0.25s ease;
}

.faq-item:hover {
  border-color: rgba(255,255,255,0.12);
  transform: translateY(-2px);
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  padding: 24px 28px;
  color: var(--text-1);
  font-size: 1.05rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  text-align: left;
}

.faq-icon {
  font-size: 1.5rem;
  color: var(--neon-blue);
  transition: transform 0.25s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-answer p {
  padding: 0 28px 24px;
  color: var(--text-2);
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 220px;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

@media (max-width: 768px) {
  .faq-question {
    padding: 20px;
    font-size: 1rem;
  }

  .faq-answer p {
    padding: 0 20px 20px;
  }
  .partners-track {
    gap: 18px;
  }

  .partner-card {
    min-width: 200px;
  }
}
/* ======================================
   PARTNERS SECTION
====================================== */

.partners-section {
  position: relative;
  padding: 50px 0 20px;
}

.partners-header {
  text-align: center;
  margin-bottom: 32px;
}

.partners-kicker {
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.82rem;
}

.partners-grid {
  position: relative;
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
}
.partners-track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  animation: partnersScroll 22s linear infinite;
}

.partner-card {
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 28px 36px;
  min-width: 220px;
  min-height: 110px;

  display: flex;
  align-items: center;
  justify-content: center;

  backdrop-filter: blur(14px);

  transition: all 0.28s ease;
}

.partner-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.05);
}

.partner-card img {
  max-width: 160px;
  max-height: 52px;
  object-fit: contain;
}

@media (max-width: 768px) {
  .partners-grid {
    gap: 18px;
  }

  .partner-card {
    width: 100%;
    min-width: unset;
    padding: 24px;
  }
}
/* ======================================
   NOM LOGO
====================================== */

.header-logo-img {
  height: 44px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
}

.footer-logo-img {
  height: 54px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
}

.login-logo-img {
  height: 72px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  display: block;
}

/* Keep layout stable */
.header-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  overflow: hidden;
}

.footer-logo,
.login-logo {
  display: flex;
  align-items: center;
}
/* ==========================
   HEADER LOGO IMPROVED
========================== */

.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.header-logo-icon {
  height: 50px;
  width: auto;
  object-fit: contain;
  display: block;
}

.header-logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: white;
  letter-spacing: -0.02em;
}

.header-logo-text span {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}