/**
 * ENC Platform — clean energy reskin
 * Flyer palette; domain enc-platform.pro
 * Loads after green-harvest.css and remaps tokens + key surfaces.
 */
:root {
  --nw-navy: #1a7a4c;
  --nw-navy-dark: #0b3d2e;
  --nw-navy-light: #2e9b63;
  --nw-navy-muted: #3daa72;
  --nw-gold: #7cb342;
  --nw-gold-dark: #558b2f;
  --nw-gold-light: #9ccc65;
  --nw-gold-pale: #e8f5e9;
  --nw-bg: #ffffff;
  --nw-bg-alt: #e8f5e9;
  --nw-surface: #ffffff;
  --nw-text: #0a1f18;
  --nw-text-muted: #4a6758;
  --nw-border: rgba(124, 179, 66, 0.55);
  --nw-border-soft: rgba(11, 61, 46, 0.14);
  --nw-shadow: 0 8px 32px rgba(6, 40, 32, 0.08);
  --nw-shadow-lg: 0 16px 48px rgba(6, 40, 32, 0.12);

  --as-navy: #1a7a4c;
  --as-navy-dark: #0b3d2e;
  --as-navy-light: #2e9b63;
  --as-gold: #7cb342;
  --as-gold-dark: #558b2f;
  --as-gold-light: #9ccc65;
  --as-gold-pale: #e8f5e9;

  --gh-green: #1a7a4c;
  --gh-green-dark: #0b3d2e;
  --gh-green-light: #2e9b63;
  --gh-lime: #7cb342;
  --gh-lime-light: #9ccc65;
  --gh-gold: #7cb342;

  --enc-forest: #0b3d2e;
  --enc-forest-deep: #062820;
  --enc-green: #1a7a4c;
  --enc-lime: #7cb342;
  --enc-mint: #e8f5e9;
  --enc-snow: #ffffff;
  --enc-ink: #0a1f18;
  --enc-muted: #4a6758;

  --dt-gold: var(--enc-lime);
  --dt-gold-bright: var(--enc-lime);
  --dt-gold-deep: var(--as-gold-dark);
  --dt-gold-dark: var(--enc-forest);
  --dt-champagne: var(--enc-mint);
  --dt-glow: rgba(124, 179, 66, 0.35);
}

body {
  color: var(--enc-ink);
  background-color: var(--enc-snow);
  font-family: 'Outfit', 'Montserrat', system-ui, sans-serif;
}

.font-display,
.gh-gate__headline,
.gh-gate__title,
.gh-yield__name,
.auth-title {
  font-family: 'Space Grotesk', 'Outfit', system-ui, sans-serif !important;
  letter-spacing: -0.02em;
}

::selection {
  background: rgba(124, 179, 66, 0.35);
  color: var(--enc-forest);
}

.dt-tower-bg,
.auth-surface {
  background-color: #eaf6ee !important;
  background-image:
    radial-gradient(ellipse 90% 55% at 50% -8%, rgba(11, 61, 46, 0.14), transparent 58%),
    radial-gradient(ellipse 55% 42% at 100% 0%, rgba(124, 179, 66, 0.18), transparent 52%),
    linear-gradient(180deg, #e2f0e6 0%, #e8f5e9 45%, #ffffff 100%) !important;
  color: var(--enc-ink);
}

body:has(.gh-gate) {
  background-color: var(--enc-forest-deep) !important;
}

/* Brand lockup */
.nw-brand--enc.nw-brand--img,
.nw-brand--greenharvest.nw-brand--img {
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 0.2rem !important;
}
.nw-brand--enc .nw-brand__img,
.nw-brand--greenharvest .nw-brand__img {
  display: block;
  width: auto;
  height: auto;
  object-fit: contain;
  background: transparent !important;
}
.nw-brand__img--mark {
  width: 44px !important;
  height: 44px !important;
  border-radius: 0.65rem;
}
.nw-brand__img--full {
  width: auto !important;
  max-width: min(220px, 62vw) !important;
  height: 52px !important;
}

/* Primary CTAs — forest green (flyer INVEST TODAY) */
.nw-btn-primary,
.inv-dash .dash-cta,
.inv-dash .plan-card__cta,
.auth-btn-primary,
.auth-card .btn.btn--base,
.auth-submit,
.as-wallet__btn--gold,
.as-plan__cta,
.as-ticket__go,
.as-dep__cta,
.gh-yield__cta,
.gh-vault__btn--gold,
.gh-gate__submit {
  border-color: rgba(124, 179, 66, 0.45) !important;
  background:
    linear-gradient(180deg, rgba(156, 204, 101, 0.22) 0%, transparent 40%),
    linear-gradient(165deg, #2e9b63 0%, #1a7a4c 48%, #0b3d2e 100%) !important;
  color: #fff !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.16) inset,
    0 10px 24px rgba(6, 40, 32, 0.28) !important;
}
.gh-gate__submit,
.gh-vault__btn--gold,
.gh-yield__cta {
  color: #fff !important;
}
.gh-gate__submit span,
.gh-gate__submit i,
.gh-gate__submit svg,
.gh-vault__btn--gold,
.gh-vault__btn--gold span,
.gh-vault__btn--gold i,
.gh-vault__btn--gold svg,
.gh-yield__cta,
.gh-yield__cta span {
  color: #fff !important;
}

/* Soft lime secondary accents */
.gh-vault__chip {
  background: linear-gradient(180deg, #9ccc65, #7cb342) !important;
  color: #0b3d2e !important;
}
.gh-vault__sym,
.gh-vault__glass--gain .gh-vault__glass-v,
.inv-dash .gh-yield__step--gain strong,
.inv-dash .gh-yield__fact--return b,
.inv-dash .gh-yield__note-gain {
  color: #7cb342 !important;
}
.gh-yield__fact--return {
  background: linear-gradient(180deg, #f1f8e9, #e8f5e9) !important;
  border-color: rgba(124, 179, 66, 0.55) !important;
}
.gh-yield__fact--return b {
  color: #1a7a4c !important;
}

/* Auth gate — energy field */
.gh-gate__field-shade {
  background:
    linear-gradient(180deg, rgba(6, 40, 32, 0.4) 0%, rgba(11, 61, 46, 0.55) 42%, rgba(6, 40, 32, 0.92) 100%),
    linear-gradient(90deg, rgba(11, 61, 46, 0.3), transparent 55%) !important;
}
.gh-gate__eyebrow {
  color: #9ccc65 !important;
}
.gh-gate__headline em {
  color: #9ccc65 !important;
}
.gh-gate__switch-active {
  background: linear-gradient(165deg, #2e9b63, #1a7a4c 55%, #0b3d2e) !important;
}
/* Soft faded white glow behind logo on auth gate */
.gh-gate__brand,
.gh-gate__mobile-brand a {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.05rem !important;
  border-radius: 1.1rem !important;
  background:
    radial-gradient(ellipse 80% 70% at 50% 50%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.72) 55%, rgba(255, 255, 255, 0.28) 100%) !important;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.55),
    0 0 28px rgba(255, 255, 255, 0.45),
    0 10px 28px rgba(0, 0, 0, 0.18) !important;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.gh-gate__brand::before,
.gh-gate__mobile-brand a::before {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 1.5rem;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.55), transparent 70%);
  z-index: -1;
  pointer-events: none;
}
.gh-gate__brand-img,
.gh-gate__mobile-brand img {
  position: relative;
  z-index: 1;
  filter: none;
  background: transparent !important;
}
.nw-brand--enc .nw-brand__img {
  background: transparent !important;
}

/* Vault card */
.gh-vault {
  border-color: rgba(124, 179, 66, 0.45) !important;
}
.gh-vault__label {
  color: #9ccc65 !important;
}
.gh-vault__live {
  background: #7cb342 !important;
}

/* Yield plan cards */
.gh-yield__head {
  background: linear-gradient(145deg, #1a7a4c 0%, #0b3d2e 100%) !important;
}
.gh-yield__rate {
  background: rgba(124, 179, 66, 0.95) !important;
  color: #0b3d2e !important;
}

/* Auth surface polish */
.auth-surface .auth-title {
  color: #0b3d2e !important;
}
.auth-surface .auth-label,
.auth-surface .auth-label i {
  color: #1a7a4c !important;
}
.auth-surface .inv-banner__title {
  color: #1a7a4c !important;
}
.auth-card::before {
  background: linear-gradient(90deg, #0b3d2e 0%, #7cb342 50%, #0b3d2e 100%) !important;
}
.auth-avatar {
  background:
    linear-gradient(180deg, rgba(124, 179, 66, 0.25) 0%, transparent 42%),
    linear-gradient(165deg, #2e9b63, #1a7a4c 50%, #0b3d2e) !important;
}

/* ═══════════════════════════════════════════
   ENC 2.0 — new platform look (not GH/Ascendia)
   Tech-energy: sharper geometry, mesh panels,
   lime pulses, no farm/harvest chrome.
   ═══════════════════════════════════════════ */

/* Page shell */
.inv-dash {
  background:
    radial-gradient(ellipse 70% 40% at 0% 0%, rgba(124, 179, 66, 0.12), transparent 55%),
    radial-gradient(ellipse 50% 35% at 100% 10%, rgba(26, 122, 76, 0.1), transparent 50%),
    linear-gradient(180deg, #f3faf5 0%, #eaf4ee 40%, #f7fbf8 100%) !important;
}
.inv-dash .dash-header {
  border-radius: 1rem !important;
  border: 1px solid rgba(11, 61, 46, 0.1) !important;
  background: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(12px);
}

/* Power balance card — mesh, not photo vault */
.enc-power {
  border-radius: 1.15rem !important;
  border: 1px solid rgba(124, 179, 66, 0.35) !important;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 20px 48px rgba(6, 40, 32, 0.28) !important;
  overflow: hidden;
}
.enc-power .gh-vault__img {
  display: none !important;
}
.enc-power__mesh,
.enc-power .gh-vault__media {
  background:
    radial-gradient(circle at 85% 15%, rgba(124, 179, 66, 0.45), transparent 42%),
    radial-gradient(circle at 10% 80%, rgba(46, 155, 99, 0.35), transparent 45%),
    linear-gradient(145deg, #0b3d2e 0%, #062820 48%, #0f4a38 100%) !important;
}
.enc-power .gh-vault__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 85%);
  pointer-events: none;
}
.enc-power .gh-vault__shade {
  background:
    linear-gradient(120deg, rgba(6, 40, 32, 0.2), transparent 50%),
    linear-gradient(180deg, transparent 30%, rgba(6, 40, 32, 0.55) 100%) !important;
}
.enc-power .gh-vault__mist {
  background: radial-gradient(ellipse at center, rgba(124, 179, 66, 0.28), transparent 68%) !important;
}
.enc-power .gh-vault__chip {
  border-radius: 0.55rem !important;
  letter-spacing: 0.12em;
}
.enc-power .gh-vault__amount {
  letter-spacing: -0.03em;
  font-family: 'Space Grotesk', 'Outfit', system-ui, sans-serif !important;
}
.enc-power .gh-vault__glass {
  border-radius: 0.75rem !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(156, 204, 101, 0.28) !important;
}
.enc-power .gh-vault__btn {
  border-radius: 0.75rem !important;
}

/* Ticker — slim tech chips */
.inv-dash .as-ticker {
  border-radius: 1rem !important;
  background:
    linear-gradient(145deg, #0f4a38 0%, #062820 100%) !important;
  border: 1px solid rgba(124, 179, 66, 0.28) !important;
}
.inv-dash .as-ticker__card {
  border-radius: 0.75rem !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}
.inv-dash .as-ticker__badge {
  border-radius: 0.55rem !important;
  background: rgba(124, 179, 66, 0.2) !important;
  color: #9ccc65 !important;
}

/* Quick links — grid tiles, not soft farm cards */
.inv-dash .as-quick__tile {
  border-radius: 0.95rem !important;
  border: 1px solid rgba(11, 61, 46, 0.12) !important;
  background:
    linear-gradient(165deg, #ffffff 0%, #f3faf5 100%) !important;
  box-shadow: 0 8px 22px rgba(6, 40, 32, 0.06) !important;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.inv-dash .as-quick__tile:hover {
  transform: translateY(-2px);
  border-color: rgba(124, 179, 66, 0.55) !important;
  box-shadow: 0 14px 28px rgba(26, 122, 76, 0.12) !important;
}
.inv-dash .as-quick__icon {
  border-radius: 0.65rem !important;
  background: linear-gradient(145deg, #e8f5e9, #c8e6c9) !important;
  color: #0b3d2e !important;
  border: 1px solid rgba(124, 179, 66, 0.35) !important;
}
.inv-dash .as-quick__tile--feature {
  background:
    linear-gradient(145deg, #1a7a4c 0%, #0b3d2e 100%) !important;
  border-color: rgba(124, 179, 66, 0.4) !important;
  color: #fff !important;
}
.inv-dash .as-quick__feature-go {
  border-radius: 0.65rem !important;
  background: #7cb342 !important;
  color: #0b3d2e !important;
}

/* Why section — sharp media frames */
.inv-dash .as-why__item {
  border-radius: 1rem !important;
  overflow: hidden;
  border: 1px solid rgba(11, 61, 46, 0.1) !important;
  background: #fff !important;
  box-shadow: 0 12px 32px rgba(6, 40, 32, 0.08) !important;
}
.inv-dash .as-why__media {
  border-radius: 0 !important;
}
.inv-dash .as-why__num {
  background: #0b3d2e !important;
  color: #9ccc65 !important;
  border-radius: 0.45rem !important;
}
.inv-dash .as-why__icon {
  border-radius: 0.65rem !important;
  background: #e8f5e9 !important;
  color: #1a7a4c !important;
}

/* Plan cards — energy modules */
.inv-dash .gh-yield {
  border-radius: 1.05rem !important;
  border: 1px solid rgba(11, 61, 46, 0.12) !important;
  box-shadow: 0 14px 36px rgba(6, 40, 32, 0.09) !important;
  overflow: hidden;
  background: #fff !important;
}
.inv-dash .gh-yield__head {
  border-radius: 0 !important;
  background:
    linear-gradient(120deg, rgba(124, 179, 66, 0.18), transparent 42%),
    linear-gradient(165deg, #147a4a 0%, #0b3d2e 100%) !important;
}
.inv-dash .gh-yield__leaf {
  border-radius: 0.55rem !important;
  background: rgba(124, 179, 66, 0.22) !important;
}
.inv-dash .gh-yield__rate {
  border-radius: 0.45rem !important;
  font-family: 'Space Grotesk', system-ui, sans-serif !important;
}
.inv-dash .gh-yield__hero-val {
  font-family: 'Space Grotesk', system-ui, sans-serif !important;
  letter-spacing: -0.03em;
}
.inv-dash .gh-yield__cta {
  border-radius: 0.75rem !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Auth gate — tech energy frame */
.enc-gate .gh-gate__field {
  clip-path: polygon(0 0, 100% 0, 94% 100%, 0 100%);
}
.enc-gate .gh-gate__panel {
  background:
    radial-gradient(ellipse 70% 45% at 100% 0%, rgba(124, 179, 66, 0.16), transparent 55%),
    linear-gradient(165deg, #f7fbf8 0%, #ffffff 50%, #eef7f1 100%) !important;
}
.enc-gate .gh-gate__switch {
  border-radius: 0.85rem !important;
  background: rgba(11, 61, 46, 0.06) !important;
}
.enc-gate .gh-gate__switch-active,
.enc-gate .gh-gate__switch-link {
  border-radius: 0.65rem !important;
}
.enc-gate .gh-gate__control {
  border-radius: 0.75rem !important;
  border-width: 1.5px !important;
  border-color: rgba(11, 61, 46, 0.14) !important;
}
.enc-gate .gh-gate__control:focus-within {
  border-color: #7cb342 !important;
  box-shadow: 0 0 0 3px rgba(124, 179, 66, 0.2) !important;
}
.enc-gate .gh-gate__submit {
  border-radius: 0.75rem !important;
  letter-spacing: 0.1em;
}
.enc-gate .gh-gate__headline {
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

/* Bottom nav — cleaner ENC dock (green only on floating Deposit button) */
.app-navbar__dock {
  border-radius: 1.1rem !important;
  border: 1px solid rgba(11, 61, 46, 0.1) !important;
  background: rgba(255, 255, 255, 0.94) !important;
  box-shadow: 0 12px 36px rgba(6, 40, 32, 0.14) !important;
}
.app-navbar .nav-item.active {
  color: #0b3d2e !important;
}
.app-navbar .nav-item-center {
  background: transparent !important;
  box-shadow: none !important;
}
.app-navbar .center-button {
  background: linear-gradient(135deg, #9ccc65 0%, #b6ff3b 48%, #7cb342 100%) !important;
  border: 0 !important;
  box-shadow:
    0 0 0 3px #ffffff,
    0 12px 28px rgba(124, 179, 66, 0.4) !important;
}

@media (max-width: 960px) {
  .enc-gate .gh-gate__field {
    clip-path: none;
  }
}
