/* ============================================================================
 * SOVRA Protocol — Premium fintech layer (homepage, apply, dashboard)
 * ==========================================================================*/

:root {
  --ft-gold: #f59e0b;
  --ft-gold-soft: rgba(245, 158, 11, 0.12);
  --ft-glass: rgba(18, 24, 42, 0.72);
  --ft-glass-border: rgba(255, 255, 255, 0.08);
  --ft-glow: rgba(0, 212, 255, 0.35);
  --ft-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --ft-radius-lg: 20px;
  --ft-radius-xl: 28px;
}

/* ---- Trust bar (homepage) ------------------------------------------------ */
.trust-bar {
  position: relative;
  z-index: 2;
  margin-top: 76px;
  border-bottom: 1px solid rgba(0, 212, 255, 0.1);
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.06), rgba(0, 212, 255, 0.04), rgba(168, 85, 247, 0.05));
  backdrop-filter: blur(12px);
}
.trust-bar-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 12px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.trust-items {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: var(--text-secondary);
}
.trust-item svg {
  width: 16px;
  height: 16px;
  color: var(--neon-cyan);
  flex-shrink: 0;
}
.trust-item strong {
  color: var(--text-primary);
  font-weight: 600;
}
.trust-cta {
  font-size: 12px;
  font-weight: 600;
  color: var(--ft-gold);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}
.trust-cta:hover {
  color: #fbbf24;
  text-decoration: none;
  transform: translateX(2px);
}

/* ---- Premium hero accents (homepage) ------------------------------------ */
.hero-premium .hero h1 .accent {
  background: linear-gradient(135deg, var(--neon-cyan), #7dd3fc 45%, var(--ft-gold));
  -webkit-background-clip: text;
-webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-premium .stat-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.hero-premium .stat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.06), transparent 55%);
  pointer-events: none;
}
.hero-premium .stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 212, 255, 0.35);
  box-shadow: 0 12px 40px rgba(0, 212, 255, 0.12);
}
.hero-premium .countdown-card,
.hero-premium .contract-card {
  border-color: var(--ft-glass-border);
  box-shadow: var(--ft-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.hero-premium .hero-actions .btn-primary {
  background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-blue) 55%, #2563eb 100%);
  position: relative;
  overflow: hidden;
}
.hero-premium .hero-actions .btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.18) 50%, transparent 60%);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
}
.hero-premium.hero {
  padding-top: 48px;
  min-height: calc(100vh - 100px);
}

/* ---- SVG feature icons (replace emoji) ---------------------------------- */
.ft-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.2);
  color: var(--neon-cyan);
}
.ft-icon svg {
  width: 24px;
  height: 24px;
}
.ft-icon.gold {
  background: var(--ft-gold-soft);
  border-color: rgba(245, 158, 11, 0.25);
  color: var(--ft-gold);
}
.ft-icon.purple {
  background: rgba(168, 85, 247, 0.1);
  border-color: rgba(168, 85, 247, 0.25);
  color: var(--neon-purple);
}

/* ---- Investor portal teaser (homepage) ---------------------------------- */
.investor-portal-section {
  position: relative;
  z-index: 1;
}
.portal-showcase {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: stretch;
  margin-top: 36px;
}
.portal-panel {
  background: var(--ft-glass);
  border: 1px solid var(--ft-glass-border);
  border-radius: var(--ft-radius-xl);
  padding: 28px;
  backdrop-filter: blur(16px);
  box-shadow: var(--ft-shadow);
}
.portal-panel h3 {
  font-family: var(--font-display);
  font-size: 20px;
  margin-bottom: 8px;
}
.portal-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 20px;
}
.portal-metric {
  padding: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.portal-metric .label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.portal-metric .value {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--neon-cyan);
}
.portal-preview {
  border-radius: var(--ft-radius-lg);
  overflow: hidden;
  border: 1px solid rgba(0, 212, 255, 0.15);
  background: rgba(8, 12, 22, 0.9);
}
.portal-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px;
  color: var(--text-muted);
}
.portal-preview-dots {
  display: flex;
  gap: 6px;
}
.portal-preview-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}
.portal-preview-dots span:first-child { background: #ff5f57; }
.portal-preview-dots span:nth-child(2) { background: #febc2e; }
.portal-preview-dots span:nth-child(3) { background: #28c840; }
.portal-preview-body {
  padding: 20px;
}
.portal-kpi-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.portal-kpi {
  padding: 12px;
  border-radius: 12px;
  background: rgba(0, 212, 255, 0.05);
  border: 1px solid rgba(0, 212, 255, 0.12);
}
.portal-kpi .k { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.8px; }
.portal-kpi .v { font-family: var(--font-mono); font-size: 14px; color: var(--text-primary); margin-top: 4px; }
.portal-journey-mini {
  display: flex;
  gap: 6px;
  margin-top: 14px;
}
.portal-journey-mini span {
  flex: 1;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
}
.portal-journey-mini span.done { background: linear-gradient(90deg, var(--neon-cyan), var(--neon-blue)); }
.portal-journey-mini span.active { background: linear-gradient(90deg, var(--ft-gold), #fbbf24); }

/* ---- Apply page hero ---------------------------------------------------- */
.apply-page .nav {
  position: sticky;
}
.apply-hero {
  position: relative;
  padding: 48px 24px 32px;
  margin: 0 auto;
  max-width: 960px;
  text-align: center;
}
.apply-hero::before {
  content: "";
  position: absolute;
  inset: -20px 0 auto;
  height: 280px;
  background: radial-gradient(ellipse 80% 100% at 50% 0%, rgba(0, 212, 255, 0.14), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.apply-hero > * {
  position: relative;
  z-index: 1;
}
.apply-hero .tag {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.12), rgba(245, 158, 11, 0.08));
  border-color: rgba(0, 212, 255, 0.25);
}
.apply-hero h1 {
  font-size: clamp(28px, 5vw, 40px);
  max-width: 720px;
  margin: 0 auto 14px;
}
.apply-hero .lead {
  max-width: 560px;
  margin: 0 auto 24px;
  font-size: 16px;
  line-height: 1.65;
}
.apply-trust-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 28px;
}
.apply-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.apply-trust-pill svg {
  width: 14px;
  height: 14px;
  color: var(--neon-cyan);
}
.apply-shell {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px 80px;
}
.apply-shell .toolbar {
  background: var(--ft-glass);
  border: 1px solid var(--ft-glass-border);
  border-radius: 14px;
  padding: 6px;
  margin-bottom: 20px;
}
.apply-shell .toolbar .btn-sm {
  flex: 1;
  border-radius: 10px;
}
.apply-shell .card {
  border-radius: var(--ft-radius-lg);
  box-shadow: var(--ft-shadow);
  border-color: var(--ft-glass-border);
}

/* ---- Dashboard investor section ----------------------------------------- */
.dashboard-shell {
  max-width: 1280px;
}
.dash-header-premium {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
  margin-bottom: 28px;
  padding: 28px;
  border-radius: var(--ft-radius-xl);
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.06), rgba(245, 158, 11, 0.04));
  border: 1px solid var(--ft-glass-border);
}
.dash-header-premium h1 {
  font-size: clamp(24px, 3.5vw, 36px);
}
.dash-quick-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 200px;
}
.investor-journey {
  margin-bottom: 28px;
  padding: 24px 28px;
  border-radius: var(--ft-radius-lg);
  background: var(--ft-glass);
  border: 1px solid var(--ft-glass-border);
}
.investor-journey h2 {
  font-size: 14px;
  font-family: var(--font-mono);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.journey-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  position: relative;
}
.journey-steps::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  z-index: 0;
}
.journey-step {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 4px;
}
.journey-step .dot {
  width: 44px;
  height: 44px;
  margin: 0 auto 10px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.04);
  border: 2px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  transition: all 0.25s ease;
}
.journey-step .label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.3;
}
.journey-step.done .dot {
  background: rgba(0, 212, 255, 0.12);
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
}
.journey-step.active .dot {
  background: linear-gradient(135deg, var(--ft-gold), #fbbf24);
  border-color: transparent;
  color: #0f1525;
  box-shadow: 0 0 24px rgba(245, 158, 11, 0.35);
}
.journey-step.active .label {
  color: var(--ft-gold);
}
.dashboard-grid-main {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
}
.dash-sidebar .card {
  margin-bottom: 16px;
  border-radius: var(--ft-radius-lg);
}
.dash-sidebar h3 {
  font-size: 14px;
  margin-bottom: 12px;
  color: var(--text-secondary);
}
.quick-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  cursor: pointer;
  background: none;
  width: 100%;
  text-align: left;
  font-family: var(--font-body);
}
.quick-link:hover {
  background: rgba(0, 212, 255, 0.06);
  border-color: rgba(0, 212, 255, 0.15);
  color: var(--text-primary);
  text-decoration: none;
}
.quick-link svg {
  width: 18px;
  height: 18px;
  color: var(--neon-cyan);
  flex-shrink: 0;
}
.activity-feed {
  list-style: none;
  margin: 0;
  padding: 0;
}
.activity-feed li {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 13px;
  color: var(--text-secondary);
}
.activity-feed li:last-child {
  border-bottom: none;
}
.activity-feed .time {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}
.activity-feed strong {
  color: var(--text-primary);
  display: block;
  font-size: 13px;
}
.kpi-row .card.stat {
  border-radius: var(--ft-radius-lg);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.kpi-row .card.stat:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}
.kpi-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  background: rgba(0, 212, 255, 0.08);
  color: var(--neon-cyan);
}
.kpi-icon svg {
  width: 18px;
  height: 18px;
}

/* ---- Mobile nav polish (portal + apply) --------------------------------- */
@media (max-width: 960px) {
  .nav {
    padding: 12px 16px !important;
  }
  .nav-toggle,
  .mobile-toggle {
    order: 2;
    margin-left: auto;
  }
  .logo {
    order: 1;
    min-width: 0;
  }
  .logo-text {
    font-size: 14px;
    letter-spacing: 2px;
  }
  .nav-links {
    order: 3;
    width: 100%;
  }
  .apply-hero {
    padding: 32px 16px 24px;
  }
  .apply-trust-row {
    gap: 8px;
  }
  .apply-trust-pill {
    font-size: 11px;
    padding: 7px 12px;
  }
  .apply-shell {
    padding: 0 16px 60px;
  }
  .trust-bar {
    margin-top: 64px;
  }
  .trust-bar-inner {
    padding: 12px 16px;
    justify-content: center;
  }
  .trust-items {
    justify-content: center;
    gap: 14px 20px;
  }
  .portal-showcase {
    grid-template-columns: 1fr;
  }
  .journey-steps {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
  }
  .journey-step .dot {
    width: 36px;
    height: 36px;
    font-size: 11px;
  }
  .journey-step .label {
    font-size: 9px;
  }
  .dashboard-grid-main {
    grid-template-columns: 1fr;
  }
  .dash-header-premium {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  .dash-quick-actions {
    flex-direction: row;
    flex-wrap: wrap;
    min-width: 0;
  }
  .dash-quick-actions .btn {
    flex: 1;
    min-width: 140px;
  }
}

@media (max-width: 520px) {
  .trust-items {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .journey-steps::before {
    display: none;
  }
  .portal-metrics {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-premium .hero-actions .btn-primary::after,
  .hero-premium .stat-card,
  .kpi-row .card.stat {
    transition: none;
  }
}
