/* ==========================================================================
   NEXUS-QUANT SaaS PLATFORM // 3D ICON SYSTEM & PORTAL STYLES
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 3D CURRENCY COIN & SYSTEM ICON ENGINE
   -------------------------------------------------------------------------- */
.coin-3d {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-weight: 800;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 10px;
  line-height: 1;
  position: relative;
  box-shadow: 
    0 4px 8px rgba(0, 0, 0, 0.4),
    0 1px 2px rgba(0, 0, 0, 0.2),
    inset 0 1.5px 2px rgba(255, 255, 255, 0.65),
    inset 0 -2px 3px rgba(0, 0, 0, 0.55);
  transform-style: preserve-3d;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.22s ease;
  flex-shrink: 0;
  user-select: none;
  cursor: pointer;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.coin-3d.lg {
  width: 36px;
  height: 36px;
  font-size: 13px;
  box-shadow: 
    0 8px 16px rgba(0, 0, 0, 0.45),
    inset 0 2.5px 3px rgba(255, 255, 255, 0.75),
    inset 0 -3px 5px rgba(0, 0, 0, 0.6);
}

.coin-3d.xl {
  width: 48px;
  height: 48px;
  font-size: 16px;
  box-shadow: 
    0 12px 24px rgba(0, 0, 0, 0.5),
    inset 0 3px 4px rgba(255, 255, 255, 0.8),
    inset 0 -4px 6px rgba(0, 0, 0, 0.65);
}

.coin-3d:hover {
  transform: translateY(-2px) scale(1.1) rotateX(10deg);
  box-shadow: 
    0 8px 18px rgba(0, 0, 0, 0.55),
    inset 0 2px 3px rgba(255, 255, 255, 0.85),
    inset 0 -2px 4px rgba(0, 0, 0, 0.6);
}

/* 3D Coin Currency Colorways & Sheens */
.coin-3d.btc {
  background: radial-gradient(circle at 35% 30%, #fffbeb 0%, #f59e0b 45%, #b45309 85%, #78350f 100%);
  color: #fff;
  border: 1px solid #fef08a;
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.35), inset 0 1.5px 2px rgba(255, 255, 255, 0.8), inset 0 -2px 4px rgba(0, 0, 0, 0.6);
}
.coin-3d.eth {
  background: radial-gradient(circle at 35% 30%, #f5f3ff 0%, #818cf8 45%, #4f46e5 85%, #312e81 100%);
  color: #fff;
  border: 1px solid #c7d2fe;
  box-shadow: 0 4px 10px rgba(99, 102, 241, 0.35), inset 0 1.5px 2px rgba(255, 255, 255, 0.8), inset 0 -2px 4px rgba(0, 0, 0, 0.6);
}
.coin-3d.sol {
  background: radial-gradient(circle at 35% 30%, #a5f3fc 0%, #06b6d4 40%, #8b5cf6 80%, #4c1d95 100%);
  color: #fff;
  border: 1px solid #67e8f9;
  box-shadow: 0 4px 10px rgba(6, 182, 212, 0.4), inset 0 1.5px 2px rgba(255, 255, 255, 0.8), inset 0 -2px 4px rgba(0, 0, 0, 0.6);
}
.coin-3d.bnb {
  background: radial-gradient(circle at 35% 30%, #fef9c3 0%, #eab308 50%, #a16207 90%);
  color: #1c1917;
  border: 1px solid #fde047;
  text-shadow: none;
  box-shadow: 0 4px 10px rgba(234, 179, 8, 0.35), inset 0 1.5px 2px rgba(255, 255, 255, 0.8), inset 0 -2px 4px rgba(0, 0, 0, 0.5);
}
.coin-3d.eur {
  background: radial-gradient(circle at 35% 30%, #dbeafe 0%, #3b82f6 45%, #1d4ed8 85%, #172554 100%);
  color: #fff;
  border: 1px solid #93c5fd;
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.35), inset 0 1.5px 2px rgba(255, 255, 255, 0.8), inset 0 -2px 4px rgba(0, 0, 0, 0.6);
}
.coin-3d.gbp {
  background: radial-gradient(circle at 35% 30%, #fed7aa 0%, #f97316 45%, #c2410c 85%, #7c2d12 100%);
  color: #fff;
  border: 1px solid #fdba74;
  box-shadow: 0 4px 10px rgba(249, 115, 22, 0.35), inset 0 1.5px 2px rgba(255, 255, 255, 0.8), inset 0 -2px 4px rgba(0, 0, 0, 0.6);
}
.coin-3d.usd {
  background: radial-gradient(circle at 35% 30%, #dcfce7 0%, #10b981 45%, #047857 85%, #064e3b 100%);
  color: #fff;
  border: 1px solid #86efac;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.35), inset 0 1.5px 2px rgba(255, 255, 255, 0.8), inset 0 -2px 4px rgba(0, 0, 0, 0.6);
}
.coin-3d.pkr {
  background: radial-gradient(circle at 35% 30%, #f0fdf4 0%, #15803d 50%, #052e16 100%);
  color: #fff;
  border: 1px solid #4ade80;
  box-shadow: 0 4px 10px rgba(21, 128, 61, 0.4), inset 0 1.5px 2px rgba(255, 255, 255, 0.8), inset 0 -2px 4px rgba(0, 0, 0, 0.6);
}
.coin-3d.jpy {
  background: radial-gradient(circle at 35% 30%, #fce7f3 0%, #ec4899 45%, #be185d 85%, #700738 100%);
  color: #fff;
  border: 1px solid #f9a8d4;
  box-shadow: 0 4px 10px rgba(236, 72, 153, 0.35), inset 0 1.5px 2px rgba(255, 255, 255, 0.8), inset 0 -2px 4px rgba(0, 0, 0, 0.6);
}
.coin-3d.xau {
  border-radius: 6px;
  background: linear-gradient(135deg, #fef08a 0%, #eab308 30%, #ca8a04 60%, #854d0e 100%);
  color: #451a03;
  font-weight: 900;
  border: 1px solid #fef9c3;
  box-shadow: 0 4px 12px rgba(202, 138, 4, 0.45), inset 0 2px 3px rgba(255, 255, 255, 0.9), inset 0 -2px 4px rgba(0, 0, 0, 0.6);
}
.coin-3d.nvda {
  border-radius: 6px;
  background: radial-gradient(circle at 35% 30%, #bbf7d0 0%, #22c55e 50%, #15803d 85%, #052e16 100%);
  color: #fff;
  border: 1px solid #4ade80;
  box-shadow: 0 4px 10px rgba(34, 197, 94, 0.4), inset 0 1.5px 2px rgba(255, 255, 255, 0.8), inset 0 -2px 4px rgba(0, 0, 0, 0.6);
}
.coin-3d.aapl {
  border-radius: 6px;
  background: radial-gradient(circle at 35% 30%, #f8fafc 0%, #94a3b8 50%, #475569 85%, #0f172a 100%);
  color: #fff;
  border: 1px solid #cbd5e1;
  box-shadow: 0 4px 10px rgba(148, 163, 184, 0.3), inset 0 1.5px 2px rgba(255, 255, 255, 0.8), inset 0 -2px 4px rgba(0, 0, 0, 0.6);
}
.coin-3d.tsla {
  border-radius: 6px;
  background: radial-gradient(circle at 35% 30%, #fee2e2 0%, #ef4444 50%, #b91c1c 85%, #450a0a 100%);
  color: #fff;
  border: 1px solid #fca5a5;
  box-shadow: 0 4px 10px rgba(239, 68, 68, 0.4), inset 0 1.5px 2px rgba(255, 255, 255, 0.8), inset 0 -2px 4px rgba(0, 0, 0, 0.6);
}
.coin-3d.spy {
  border-radius: 6px;
  background: radial-gradient(circle at 35% 30%, #e0e7ff 0%, #3b82f6 45%, #1e40af 85%, #0f172a 100%);
  color: #fff;
  border: 1px solid #93c5fd;
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.35), inset 0 1.5px 2px rgba(255, 255, 255, 0.8), inset 0 -2px 4px rgba(0, 0, 0, 0.6);
}

/* 3D System Feature Icons */
.icon-3d-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 16px;
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.03) 100%);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25), inset 0 1px 2px rgba(255, 255, 255, 0.4);
  transform-style: preserve-3d;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
  flex-shrink: 0;
}
.icon-3d-badge:hover {
  transform: translateY(-2px) scale(1.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35), inset 0 1.5px 2px rgba(255, 255, 255, 0.6);
}

.icon-3d-badge.cyan {
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.25), inset 0 1px 2px rgba(255, 255, 255, 0.5);
}
.icon-3d-badge.gold {
  border-color: rgba(234, 179, 8, 0.4);
  box-shadow: 0 4px 14px rgba(234, 179, 8, 0.25), inset 0 1px 2px rgba(255, 255, 255, 0.5);
}
.icon-3d-badge.purple {
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.25), inset 0 1px 2px rgba(255, 255, 255, 0.5);
}
.icon-3d-badge.green {
  border-color: rgba(34, 197, 94, 0.4);
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.25), inset 0 1px 2px rgba(255, 255, 255, 0.5);
}

/* --------------------------------------------------------------------------
   2. SAAS MARKETING PORTAL & LANDING VIEW
   -------------------------------------------------------------------------- */
#saasLandingView {
  display: block;
  min-height: 100vh;
  background-color: #07090e;
  color: #f1f5f9;
  font-family: var(--font-sans, 'Inter', sans-serif);
  position: relative;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(14, 165, 233, 0.15) 0%, transparent 60%),
    radial-gradient(circle at 90% 20%, rgba(168, 85, 247, 0.12) 0%, transparent 50%),
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
}

/* SaaS Top Navigation Bar */
.saas-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.saas-nav-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.saas-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  cursor: pointer;
}

.saas-logo-3d {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0284c7 0%, #7c3aed 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono, monospace);
  font-weight: 800;
  font-size: 14px;
  color: #fff;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4), inset 0 2px 3px rgba(255, 255, 255, 0.7);
  transform-style: preserve-3d;
  transition: transform 0.25s ease;
}
.saas-logo-3d:hover {
  transform: rotateY(15deg) rotateX(10deg) scale(1.05);
}

.saas-brand-title {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.saas-brand-badge {
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 12px;
  background: rgba(2, 132, 199, 0.2);
  color: #38bdf8;
  border: 1px solid rgba(2, 132, 199, 0.4);
  font-weight: 600;
}

.saas-nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.saas-nav-link {
  color: #94a3b8;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s ease;
  cursor: pointer;
}
.saas-nav-link:hover {
  color: #38bdf8;
}

.saas-nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.saas-status-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  font-size: 11px;
  font-family: var(--font-mono, monospace);
  color: #4ade80;
}

.saas-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse 1.6s infinite;
}

.btn-saas-login {
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}
.btn-saas-login:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.55);
}

.btn-saas-terminal {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}
.btn-saas-terminal:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.55);
}

/* SaaS Hero Section */
.saas-hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px 48px;
  text-align: center;
}

.saas-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 30px;
  background: rgba(2, 132, 199, 0.12);
  border: 1px solid rgba(2, 132, 199, 0.3);
  color: #38bdf8;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 24px;
}

.saas-hero h1 {
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: 48px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #ffffff 40%, #93c5fd 75%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.saas-hero p {
  max-width: 680px;
  margin: 0 auto 36px;
  font-size: 17px;
  color: #94a3b8;
  line-height: 1.6;
}

.saas-hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 50px;
}

.btn-hero-primary {
  background: linear-gradient(135deg, #0284c7 0%, #3b82f6 50%, #7c3aed 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(2, 132, 199, 0.45);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.25s ease;
}
.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(2, 132, 199, 0.6);
}

.btn-hero-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}
.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* 3D Currency Ticker Showcase Marquee */
.saas-currencies-bar {
  max-width: 1100px;
  margin: 0 auto 56px;
  padding: 16px 20px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.saas-currencies-title {
  font-size: 11px;
  font-family: var(--font-mono, monospace);
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.saas-currencies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
}

.saas-coin-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
  cursor: pointer;
}
.saas-coin-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(2, 132, 199, 0.3);
  transform: translateY(-2px);
}

.saas-coin-meta {
  display: flex;
  flex-direction: column;
}
.saas-coin-symbol {
  font-size: 11px;
  font-weight: 700;
  color: #f1f5f9;
}
.saas-coin-price {
  font-size: 11px;
  font-family: var(--font-mono, monospace);
  color: #94a3b8;
}

/* SaaS Features Section */
.saas-features-section {
  max-width: 1200px;
  margin: 0 auto 72px;
  padding: 0 24px;
}

.saas-section-header {
  text-align: center;
  margin-bottom: 40px;
}
.saas-section-header h2 {
  font-family: var(--font-display, sans-serif);
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}
.saas-section-header p {
  color: #94a3b8;
  font-size: 15px;
}

.saas-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.saas-feature-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}
.saas-feature-card:hover {
  border-color: rgba(2, 132, 199, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.saas-feature-icon-wrapper {
  margin-bottom: 16px;
}

.saas-feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.saas-feature-card p {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.6;
}

/* SaaS Pricing Section */
.saas-pricing-section {
  max-width: 1100px;
  margin: 0 auto 80px;
  padding: 0 24px;
}

.saas-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.saas-pricing-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 32px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}
.saas-pricing-card.featured {
  border-color: rgba(2, 132, 199, 0.6);
  background: linear-gradient(180deg, rgba(2, 132, 199, 0.1) 0%, rgba(15, 23, 42, 0.8) 100%);
  box-shadow: 0 12px 36px rgba(2, 132, 199, 0.2);
}
.saas-pricing-card:hover {
  transform: translateY(-4px);
}

.saas-plan-tag {
  position: absolute;
  top: -11px;
  right: 24px;
  background: linear-gradient(135deg, #0284c7, #2563eb);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

.saas-plan-name {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.saas-plan-price {
  font-size: 38px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.saas-plan-price span {
  font-size: 14px;
  color: #94a3b8;
  font-weight: 400;
}

.saas-plan-desc {
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 24px;
  line-height: 1.5;
}

.saas-plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  flex: 1;
}
.saas-plan-features li {
  font-size: 13px;
  color: #cbd5e1;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.saas-plan-features li span {
  color: #22c55e;
  font-weight: 800;
}

.btn-plan-select {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-plan-select:hover {
  background: #0284c7;
  border-color: #0284c7;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4);
}
.saas-pricing-card.featured .btn-plan-select {
  background: linear-gradient(135deg, #0284c7, #2563eb);
  border: none;
}

/* --------------------------------------------------------------------------
   3. SAAS LOGIN MODAL
   -------------------------------------------------------------------------- */
.saas-login-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.75);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease-out;
}

.saas-login-modal {
  width: 100%;
  max-width: 440px;
  background: #0b0f19;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(2, 132, 199, 0.15);
  position: relative;
  animation: scaleUp 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.saas-login-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 13px;
}
.saas-login-close:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.saas-login-header {
  text-align: center;
  margin-bottom: 24px;
}

.saas-login-logo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0284c7 0%, #7c3aed 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 20px;
  color: #fff;
  margin-bottom: 14px;
  box-shadow: 0 8px 20px rgba(2, 132, 199, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.7);
}

.saas-login-header h3 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}
.saas-login-header p {
  font-size: 13px;
  color: #94a3b8;
}

.saas-form-group {
  margin-bottom: 16px;
}
.saas-form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 6px;
}

.saas-input {
  width: 100%;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s ease;
}
.saas-input:focus {
  border-color: #0284c7;
  background: rgba(2, 132, 199, 0.05);
}

.saas-btn-submit {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4);
  margin-top: 8px;
  transition: all 0.2s ease;
}
.saas-btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.55);
}

.saas-btn-instant {
  width: 100%;
  padding: 10px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}
.saas-btn-instant:hover {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.5);
}

/* SaaS Navbar Theme Toggle */
.saas-theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #38bdf8;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.saas-theme-toggle:hover {
  background: rgba(2, 132, 199, 0.15);
  border-color: #38bdf8;
  transform: translateY(-1px);
}

/* SaaS Logged-In User Nav Info */
.saas-nav-user {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.saas-user-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(2, 132, 199, 0.15);
  border: 1px solid rgba(2, 132, 199, 0.35);
  border-radius: 16px;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  font-weight: 700;
  color: #38bdf8;
}
.saas-nav-logout-btn {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
  border: 1px solid #b91c1c !important;
  color: #ffffff !important;
  padding: 6px 14px !important;
  border-radius: 6px !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  font-family: var(--font-mono, monospace) !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4) !important;
  transition: all 0.2s ease !important;
}
.saas-nav-logout-btn:hover {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.6) !important;
}

/* Administrator Credentials Hint Box in Login Modal */
.saas-admin-credentials-box {
  background: rgba(2, 132, 199, 0.08);
  border: 1px solid rgba(2, 132, 199, 0.25);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 18px;
  font-family: var(--font-mono, monospace);
}
.saas-creds-title {
  font-size: 10px;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.saas-creds-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #cbd5e1;
  margin-bottom: 4px;
}
.saas-creds-row:last-child {
  margin-bottom: 0;
}
.saas-creds-label {
  color: #94a3b8;
}
.saas-creds-val code {
  background: rgba(0, 0, 0, 0.4);
  color: #4ade80;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
  border: 1px solid rgba(74, 222, 128, 0.3);
}

/* Login Error Alert */
.saas-login-error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12px;
  margin-bottom: 16px;
  line-height: 1.4;
  animation: fadeIn 0.2s ease-out;
}

/* Terminal Return / Portal Switcher Bar */
.terminal-user-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  background: rgba(2, 132, 199, 0.12);
  border: 1px solid rgba(2, 132, 199, 0.3);
  border-radius: 20px;
  font-size: 11px;
  font-family: var(--font-mono, monospace);
  color: var(--cyan, #0284c7);
  font-weight: 700;
}

.btn-exit-portal {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle, #cbd5e1);
  color: var(--text-main, #090d16);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono, monospace);
  transition: all 0.2s ease;
}
.btn-exit-portal:hover {
  background: rgba(2, 132, 199, 0.15);
  border-color: var(--cyan, #0284c7);
  color: var(--cyan, #0284c7);
}

.btn-terminal-logout {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
  border: 1px solid #b91c1c !important;
  color: #ffffff !important;
  padding: 6px 14px !important;
  border-radius: 6px !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-family: var(--font-mono, monospace) !important;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4) !important;
  transition: all 0.2s ease !important;
}
.btn-terminal-logout:hover {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.6) !important;
  transform: translateY(-1px) !important;
}

/* ==========================================================================
   4. SAAS LIGHT MODE THEME SYSTEM
   ========================================================================== */
#saasLandingView.saas-light {
  background-color: #f8fafc;
  color: #0f172a;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(14, 165, 233, 0.09) 0%, transparent 60%),
    radial-gradient(circle at 90% 20%, rgba(99, 102, 241, 0.06) 0%, transparent 50%),
    linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
}

#saasLandingView.saas-light .saas-navbar {
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

#saasLandingView.saas-light .saas-brand-title {
  color: #0f172a;
}

#saasLandingView.saas-light .saas-brand-badge {
  background: rgba(2, 132, 199, 0.1);
  color: #0284c7;
  border-color: rgba(2, 132, 199, 0.25);
}

#saasLandingView.saas-light .saas-nav-link {
  color: #475569;
}
#saasLandingView.saas-light .saas-nav-link:hover {
  color: #0284c7;
}

#saasLandingView.saas-light .saas-status-pill {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.3);
  color: #15803d;
}

#saasLandingView.saas-light .saas-theme-toggle {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.12);
  color: #0284c7;
}
#saasLandingView.saas-light .saas-theme-toggle:hover {
  background: rgba(2, 132, 199, 0.1);
}

#saasLandingView.saas-light .saas-hero-badge {
  background: #ffffff;
  border-color: rgba(2, 132, 199, 0.25);
  color: #0284c7;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

#saasLandingView.saas-light .saas-hero h1 {
  color: #0f172a;
  background: linear-gradient(180deg, #0f172a 0%, #334155 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

#saasLandingView.saas-light .saas-hero p {
  color: #475569;
}

#saasLandingView.saas-light .btn-hero-secondary {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #334155;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}
#saasLandingView.saas-light .btn-hero-secondary:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

#saasLandingView.saas-light .saas-currencies-bar {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(226, 232, 240, 0.9);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

#saasLandingView.saas-light .saas-currencies-title {
  color: #475569;
}

#saasLandingView.saas-light .saas-coin-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
#saasLandingView.saas-light .saas-coin-card:hover {
  background: #ffffff;
  border-color: rgba(2, 132, 199, 0.4);
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.12);
}

#saasLandingView.saas-light .saas-coin-symbol {
  color: #0f172a;
}
#saasLandingView.saas-light .saas-coin-price {
  color: #475569;
}

#saasLandingView.saas-light .saas-section-header h2 {
  color: #0f172a;
}
#saasLandingView.saas-light .saas-section-header p {
  color: #64748b;
}

#saasLandingView.saas-light .saas-feature-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}
#saasLandingView.saas-light .saas-feature-card:hover {
  border-color: rgba(2, 132, 199, 0.4);
  box-shadow: 0 12px 30px rgba(2, 132, 199, 0.1);
}
#saasLandingView.saas-light .saas-feature-card h3 {
  color: #0f172a;
}
#saasLandingView.saas-light .saas-feature-card p {
  color: #475569;
}

#saasLandingView.saas-light .saas-pricing-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}
#saasLandingView.saas-light .saas-pricing-card.featured {
  background: #ffffff;
  border-color: #0284c7;
  box-shadow: 0 12px 32px rgba(2, 132, 199, 0.15);
}
#saasLandingView.saas-light .saas-plan-name,
#saasLandingView.saas-light .saas-plan-price {
  color: #0f172a;
}
#saasLandingView.saas-light .saas-plan-desc {
  color: #64748b;
}
#saasLandingView.saas-light .saas-plan-features li {
  color: #334155;
}
#saasLandingView.saas-light .btn-plan-select {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}
#saasLandingView.saas-light .btn-plan-select:hover {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
}

/* Light Mode for Login Modal */
#saasLoginModal.saas-light .saas-login-modal {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}
#saasLoginModal.saas-light .saas-login-close {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #64748b;
}
#saasLoginModal.saas-light .saas-login-header h3 {
  color: #0f172a;
}
#saasLoginModal.saas-light .saas-login-header p,
#saasLoginModal.saas-light .saas-form-group label {
  color: #475569;
}
#saasLoginModal.saas-light .saas-input {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}
#saasLoginModal.saas-light .saas-admin-credentials-box {
  background: #f0fdf4;
  border-color: #bbf7d0;
}
#saasLoginModal.saas-light .saas-creds-title {
  color: #15803d;
}
#saasLoginModal.saas-light .saas-creds-row {
  color: #1e293b;
}
#saasLoginModal.saas-light .saas-creds-val code {
  background: #dcfce7;
  color: #166534;
  border-color: #86efac;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleUp {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
