/*
 * Ubuntu ComEx — UI Enhancements
 * Layered on top of styles.css — safe to revert by removing this file + its <link>.
 * Covers: Nav, Hero, Cards, Section headers, Buttons, Forms, Footer, Micro-interactions
 */

/* ══════════════════════════════════════════════
   SITE-WIDE PARTICLE BACKGROUND
   The canvas is fixed behind the entire page.
   Every section uses a semi-transparent bg so
   the particle network shows through subtly.
   Opacity values are tuned: hero = 0 (full),
   sections ≈ 0.80, cards/modals stay solid.
══════════════════════════════════════════════ */

/* Announcement bar */
#ann-bar { background: rgba(5,19,13,0.78) !important; }

/* Sticky nav — already blurred, slight extra transparency */
nav { background: rgba(7,9,15,0.80) !important; }
nav.scrolled { background: rgba(7,9,15,0.94) !important; }

/* Ticker strip */
.ticker { background: rgba(7,9,15,0.72) !important; }

/* Hero — fully transparent, canvas shows directly */
.hero { background: transparent !important; }

/* Commodity / main sections */
.sec  { background: rgba(7,9,15,0.62) !important; }
.alt  { background: rgba(11,14,24,0.65) !important; }

/* Trading chart section */
.trading-sec { background: rgba(11,14,24,0.65) !important; }

/* Blockchain / chain section */
.chain-sec { background: rgba(11,14,24,0.62) !important; }

/* Bulk deals section */
.deals-sec { background: rgba(7,9,15,0.60) !important; }

/* CTA banner */
.banner { background: rgba(11,14,24,0.68) !important; }

/* Footer */
footer { background: rgba(11,14,24,0.78) !important; }

/* Mobile bottom tab bar */
#mob-tab-bar { background: rgba(7,9,15,0.94) !important; }

/* Cards, modals, drawers — keep solid for readability */
.deal-card,
.form-card,
.ai-modal,
.acct-modal,
.cart-drawer,
.mkt-card,
.chart-panel,
.step,
.bcf,
.fi,
.fact,
.qr-demo,
.bc-tx-panel,
.bc-trust,
.about-stats { background: var(--bg3) !important; }

/* ══════════════════════════════════════════════
   COMMODITY CARDS — enhanced glassmorphism
   Frosted glass surface with green rim glow
══════════════════════════════════════════════ */
.cc {
  background: rgba(10,16,26,0.55) !important;
  backdrop-filter: blur(18px) saturate(1.4) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.4) !important;
  border: 1px solid rgba(16,185,129,0.18) !important;
  box-shadow:
    0 4px 24px rgba(0,0,0,0.45),
    0 1px 0 rgba(255,255,255,0.05) inset,
    0 0 0 1px rgba(16,185,129,0.06) inset !important;
  transition: border-color .3s, transform .3s var(--ease-spring), box-shadow .3s ease !important;
}
.cc:hover {
  background: rgba(12,20,32,0.70) !important;
  border-color: rgba(16,185,129,0.38) !important;
  transform: translateY(-7px) !important;
  box-shadow:
    0 22px 56px rgba(0,0,0,0.55),
    0 0 0 1px rgba(16,185,129,0.18),
    0 0 28px rgba(16,185,129,0.08),
    0 1px 0 rgba(255,255,255,0.07) inset !important;
}
/* Card body gets a very subtle top shine */
.cc-body {
  background: linear-gradient(180deg,
    rgba(255,255,255,0.025) 0%,
    rgba(255,255,255,0) 40%) !important;
}
/* Price row — glass pill */
.cc-price-row {
  background: rgba(16,185,129,0.04);
  border-radius: 6px;
  padding: 4px 6px;
  margin: 0 -6px .4rem;
}

/* ══════════════════════════════════════════════
   DESIGN TOKENS — extend the root palette
══════════════════════════════════════════════ */
:root {
  --glass-bg:   rgba(15,21,33,.72);
  --glass-border: rgba(255,255,255,.07);
  --glass-blur: blur(18px);

  --grad-brand: linear-gradient(135deg,#10b981 0%,#34d399 50%,#059669 100%);
  --grad-gold:  linear-gradient(135deg,#f59e0b 0%,#fbbf24 55%,#d97706 100%);
  --grad-text:  linear-gradient(135deg,#edf2f8 30%,#10b981 100%);

  --radius-card: 14px;
  --radius-btn:  9px;
  --radius-input:9px;

  /* Richer shadows */
  --sh-card:  0 4px 24px rgba(0,0,0,.5), 0 1px 0 rgba(255,255,255,.04) inset;
  --sh-hover: 0 20px 56px rgba(0,0,0,.6), 0 0 0 1px rgba(16,185,129,.12), 0 1px 0 rgba(255,255,255,.06) inset;
  --sh-btn:   0 4px 18px rgba(16,185,129,.28);
}

/* ══════════════════════════════════════════════
   GLOBAL NOISE TEXTURE
   A very subtle grain overlay that lifts depth
══════════════════════════════════════════════ */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: .028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ══════════════════════════════════════════════
   NAVIGATION — glassmorphism upgrade
══════════════════════════════════════════════ */
nav {
  background: rgba(7,9,15,.82) !important;
  backdrop-filter: var(--glass-blur) !important;
  -webkit-backdrop-filter: var(--glass-blur) !important;
  border-bottom: 1px solid transparent !important;
  background-image: linear-gradient(rgba(7,9,15,.82),rgba(7,9,15,.82)),
                    linear-gradient(90deg,transparent 0%,rgba(16,185,129,.18) 50%,transparent 100%) !important;
  background-origin: border-box !important;
  background-clip: padding-box, border-box !important;
}
nav.scrolled {
  background: rgba(7,9,15,.96) !important;
  box-shadow: 0 0 0 1px var(--border), 0 6px 32px rgba(0,0,0,.6) !important;
}

/* Logo mark — gradient ring */
.nav-mark {
  background: var(--grad-brand) !important;
  box-shadow: 0 0 0 2px rgba(16,185,129,.2), 0 3px 12px rgba(16,185,129,.25) !important;
  transition: box-shadow .3s ease, transform .25s var(--ease-spring) !important;
}
.nav-logo:hover .nav-mark {
  box-shadow: 0 0 0 3px rgba(16,185,129,.35), 0 4px 18px rgba(16,185,129,.4) !important;
  transform: scale(1.06) rotate(-4deg);
}

/* Nav links — refined underline + active pill */
.nav-links a {
  font-size: .79rem;
  font-weight: 500;
  color: var(--text2);
  letter-spacing: .01em;
  padding: 4px 2px;
}
.nav-links a.active {
  color: var(--green) !important;
}
.nav-links a::after {
  height: 2px !important;
  background: var(--grad-brand) !important;
  border-radius: 2px !important;
}

/* CTA button glow pulse */
.nbtn.cta {
  background: var(--grad-brand) !important;
  border: none !important;
  box-shadow: 0 0 0 0 rgba(16,185,129,.4) !important;
  transition: all .22s var(--ease-spring), box-shadow .4s ease !important;
}
.nbtn.cta:hover {
  box-shadow: var(--sh-btn) !important;
  transform: translateY(-2px) !important;
}

/* ══════════════════════════════════════════════
   HERO — canvas shows through (no background)
══════════════════════════════════════════════ */
.hero {
  background: transparent !important;
}

/* Gradient text on hero h1 */
.hero h1 .acc {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 18px rgba(16,185,129,.3));
}
.hero h1 .gold {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 12px rgba(245,158,11,.25));
}

/* Eyebrow badge — shimmer sweep */
.eyebrow {
  background: linear-gradient(100deg,
    rgba(16,185,129,.12) 0%,
    rgba(52,211,153,.2) 50%,
    rgba(16,185,129,.12) 100%) !important;
  border-color: rgba(52,211,153,.3) !important;
  position: relative;
  overflow: hidden;
}
.eyebrow::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.12) 50%, transparent 100%);
  transform: translateX(-100%);
  animation: eyebrow-shimmer 3.5s ease-in-out infinite 1s;
}
@keyframes eyebrow-shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

/* Hero stats — glassmorphism mini cards */
.hero-stats {
  gap: 0 !important;
  border-top: 1px solid rgba(255,255,255,.06) !important;
  padding-top: 1.8rem !important;
  margin-top: 1.8rem !important;
}
.hero-stats > div {
  flex: 1;
  padding: .7rem 1rem;
  border-right: 1px solid rgba(255,255,255,.06);
  transition: background .22s ease;
  border-radius: 8px;
}
.hero-stats > div:last-child { border-right: none; }
.hero-stats > div:hover { background: rgba(16,185,129,.05); }


/* ══════════════════════════════════════════════
   SECTION HEADERS — refined kicker + title
══════════════════════════════════════════════ */
.kicker {
  font-size: .6rem !important;
  letter-spacing: .2em !important;
  color: var(--green) !important;
  position: relative;
}
.kicker::before {
  content: '';
  width: 24px !important;
  height: 2px !important;
  background: var(--grad-brand) !important;
  border-radius: 2px !important;
  flex-shrink: 0;
}

.sec-title {
  background: linear-gradient(150deg, var(--text) 60%, rgba(16,185,129,.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ══════════════════════════════════════════════
   COMMODITY CARDS — glass surface + richer hover
══════════════════════════════════════════════ */
.cc {
  background: var(--glass-bg) !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
  border-radius: var(--radius-card) !important;
  border: 1px solid var(--glass-border) !important;
  box-shadow: var(--sh-card) !important;
  transition: border-color .28s ease, transform .32s var(--ease-spring), box-shadow .32s ease !important;
}
.cc:hover {
  border-color: rgba(16,185,129,.22) !important;
  box-shadow: var(--sh-hover) !important;
  transform: translateY(-7px) !important;
}

/* Card image — refined gradient overlay */
.cc-img .ov {
  background: linear-gradient(to bottom,
    transparent 40%,
    rgba(7,9,15,.45) 75%,
    rgba(7,9,15,.75) 100%) !important;
}

/* Price row — gradient price value */
.cc-price {
  background: linear-gradient(135deg, var(--text) 0%, var(--green2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Sparkline area — rounded bottom */
.spark-wrap { border-radius: 0 0 4px 4px; overflow: hidden; }

/* Add-to-cart button */
.add-cart-btn {
  border-radius: var(--radius-btn) !important;
  border: 1px solid rgba(16,185,129,.25) !important;
  background: rgba(16,185,129,.04) !important;
  transition: all .22s var(--ease-spring) !important;
}
.add-cart-btn:hover {
  background: var(--grad-brand) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: var(--sh-btn) !important;
  transform: translateY(-1px) !important;
}

/* Category filter tabs */
.ct {
  border-radius: 100px !important;
  font-weight: 600 !important;
  border: 1px solid rgba(255,255,255,.07) !important;
  background: rgba(255,255,255,.03) !important;
  transition: all .22s var(--ease-spring) !important;
}
.ct.active {
  background: rgba(16,185,129,.14) !important;
  border-color: rgba(16,185,129,.35) !important;
  color: var(--green) !important;
  box-shadow: 0 2px 12px rgba(16,185,129,.15), 0 0 0 1px rgba(16,185,129,.2) inset !important;
}
.ct:hover:not(.active) {
  background: rgba(255,255,255,.06) !important;
  border-color: rgba(255,255,255,.12) !important;
  color: var(--text) !important;
}

/* ══════════════════════════════════════════════
   DEAL CARDS — subtle inner glow + better hover
══════════════════════════════════════════════ */
.deal-card {
  border-radius: 16px !important;
  box-shadow: 0 8px 32px rgba(0,0,0,.4), 0 1px 0 rgba(255,255,255,.04) inset !important;
}
.deal-card:hover {
  box-shadow: 0 28px 72px rgba(0,0,0,.65), 0 1px 0 rgba(255,255,255,.07) inset !important;
  transform: translateY(-8px) !important;
}
.deal-cta {
  letter-spacing: .04em !important;
}

/* ══════════════════════════════════════════════
   BUTTONS — premium gradient treatment
══════════════════════════════════════════════ */
.btn-g {
  background: var(--grad-brand) !important;
  border-radius: var(--radius-btn) !important;
  font-weight: 700 !important;
  letter-spacing: .02em !important;
  box-shadow: 0 2px 12px rgba(16,185,129,.2) !important;
  transition: all .25s var(--ease-spring) !important;
}
.btn-g:hover {
  filter: brightness(1.1) !important;
  box-shadow: var(--sh-btn) !important;
  transform: translateY(-2px) !important;
  color: #fff !important;
}

.btn-o {
  border-radius: var(--radius-btn) !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  background: rgba(255,255,255,.03) !important;
  backdrop-filter: blur(8px) !important;
}
.btn-o:hover {
  border-color: rgba(255,255,255,.25) !important;
  background: rgba(255,255,255,.07) !important;
  transform: translateY(-2px) !important;
}

/* ══════════════════════════════════════════════
   HOW IT WORKS — numbered step circles
══════════════════════════════════════════════ */
.step {
  background: var(--glass-bg) !important;
  border: 1px solid var(--glass-border) !important;
  box-shadow: var(--sh-card) !important;
  border-radius: 14px !important;
  transition: all .3s var(--ease-spring) !important;
}
.step:hover {
  border-color: rgba(16,185,129,.2) !important;
  box-shadow: var(--sh-hover) !important;
  transform: translateY(-5px) !important;
}
/* Number badge — gradient */
.step-n {
  background: linear-gradient(135deg, rgba(16,185,129,.12), rgba(52,211,153,.07));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 2.4rem !important;
  font-weight: 900 !important;
  opacity: 1 !important;
}

/* ══════════════════════════════════════════════
   BLOCKCHAIN FEATURE CARDS
══════════════════════════════════════════════ */
.bcf {
  background: var(--glass-bg) !important;
  border: 1px solid var(--glass-border) !important;
  box-shadow: var(--sh-card) !important;
  border-radius: 14px !important;
  transition: all .3s var(--ease-spring) !important;
}
.bcf:hover {
  border-color: rgba(245,158,11,.2) !important;
  box-shadow: 0 16px 48px rgba(0,0,0,.5), 0 0 0 1px rgba(245,158,11,.1) !important;
  transform: translateY(-4px) !important;
}
.bcf-title {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ══════════════════════════════════════════════
   FAQ — left accent bar on open items
══════════════════════════════════════════════ */
.fi {
  border-radius: 12px !important;
  border: 1px solid var(--glass-border) !important;
  background: var(--glass-bg) !important;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s !important;
}
.fi:has(.fq.open) {
  border-color: rgba(16,185,129,.22) !important;
  box-shadow: 0 0 0 1px rgba(16,185,129,.08) inset !important;
}
.fq.open {
  background: linear-gradient(90deg,
    rgba(16,185,129,.1) 0%,
    rgba(16,185,129,.05) 100%) !important;
  border-left: 2px solid var(--green);
}
.fa.open {
  border-left: 2px solid rgba(16,185,129,.2);
}

/* ══════════════════════════════════════════════
   FORM INPUTS — frosted glass
══════════════════════════════════════════════ */
.fg input,
.fg select,
.fg textarea {
  background: rgba(255,255,255,.04) !important;
  border: 1px solid rgba(255,255,255,.1) !important;
  border-radius: var(--radius-input) !important;
  color: var(--text) !important;
  transition: border-color .2s, box-shadow .22s, background .2s !important;
}
.fg input:focus,
.fg select:focus,
.fg textarea:focus {
  border-color: rgba(16,185,129,.5) !important;
  background: rgba(16,185,129,.03) !important;
  box-shadow: 0 0 0 3px rgba(16,185,129,.1) !important;
}
.fg label {
  color: rgba(141,164,190,.85) !important;
  letter-spacing: .04em !important;
}

.form-card {
  background: var(--glass-bg) !important;
  border: 1px solid var(--glass-border) !important;
  box-shadow: var(--sh-card) !important;
  border-radius: 16px !important;
}

.fsub {
  background: var(--grad-brand) !important;
  border-radius: var(--radius-btn) !important;
  font-weight: 700 !important;
  letter-spacing: .03em !important;
  box-shadow: 0 2px 14px rgba(16,185,129,.2) !important;
  transition: all .22s var(--ease-spring) !important;
}
.fsub:hover {
  filter: brightness(1.08) !important;
  box-shadow: var(--sh-btn) !important;
  transform: translateY(-2px) !important;
  color: #fff !important;
}

/* ══════════════════════════════════════════════
   ABOUT + CONTACT INFO CARDS
══════════════════════════════════════════════ */
.about-stats,
.mkt-card,
.chart-panel,
.qr-demo,
.bc-tx-panel {
  background: var(--glass-bg) !important;
  border: 1px solid var(--glass-border) !important;
  box-shadow: var(--sh-card) !important;
}
.ficon {
  background: linear-gradient(135deg, rgba(16,185,129,.15), rgba(52,211,153,.06)) !important;
  border-color: rgba(16,185,129,.2) !important;
  transition: all .25s var(--ease-spring) !important;
}
.fact:hover .ficon {
  background: var(--grad-brand) !important;
  border-color: transparent !important;
  box-shadow: 0 4px 14px rgba(16,185,129,.3) !important;
}

/* ══════════════════════════════════════════════
   BANNER CTA SECTION — gradient border + glow
══════════════════════════════════════════════ */
.banner {
  position: relative;
  background: linear-gradient(160deg,
    rgba(16,185,129,.04) 0%,
    rgba(7,9,15,1) 40%,
    rgba(245,158,11,.03) 100%) !important;
  border-top: 1px solid rgba(16,185,129,.12) !important;
  border-bottom: 1px solid rgba(16,185,129,.12) !important;
  overflow: hidden;
}
.banner::before {
  content: '';
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(16,185,129,.07) 0%, transparent 70%);
  pointer-events: none;
}
.banner-title {
  background: linear-gradient(135deg, var(--text) 50%, rgba(16,185,129,.8) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ══════════════════════════════════════════════
   FOOTER — gradient top fade + link glows
══════════════════════════════════════════════ */
footer {
  background: linear-gradient(180deg,
    rgba(16,185,129,.03) 0%,
    var(--bg2) 60px) !important;
  border-top: 1px solid transparent !important;
  background-image:
    linear-gradient(180deg, rgba(16,185,129,.03) 0%, var(--bg2) 60px),
    linear-gradient(90deg, transparent 0%, rgba(16,185,129,.18) 50%, transparent 100%) !important;
  background-origin: padding-box, border-box !important;
  background-clip: padding-box, border-box !important;
}
.foot-col-title {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.foot-links a:hover {
  color: var(--green2) !important;
  text-shadow: 0 0 10px rgba(52,211,153,.35);
}

/* ══════════════════════════════════════════════
   SCROLL PROGRESS — thicker with glow
══════════════════════════════════════════════ */
#scroll-progress {
  height: 3px !important;
  box-shadow: 0 0 8px rgba(16,185,129,.6), 0 0 16px rgba(16,185,129,.3) !important;
}

/* ══════════════════════════════════════════════
   BACK-TO-TOP — ring pulse on hover
══════════════════════════════════════════════ */
#back-top {
  background: var(--glass-bg) !important;
  border: 1px solid rgba(255,255,255,.1) !important;
  backdrop-filter: blur(10px) !important;
  color: var(--text2) !important;
}
#back-top:hover {
  background: var(--grad-brand) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: var(--sh-btn) !important;
}

/* ══════════════════════════════════════════════
   TICKER BAR — frosted strip
══════════════════════════════════════════════ */
.ticker {
  background: rgba(11,14,24,.9) !important;
  backdrop-filter: blur(8px) !important;
  border-bottom: 1px solid rgba(16,185,129,.1) !important;
}
.ti:hover { background: rgba(16,185,129,.05) !important; }

/* ══════════════════════════════════════════════
   ANNOUNCEMENT BAR — polished gradient
══════════════════════════════════════════════ */
#ann-bar {
  background: linear-gradient(90deg,
    rgba(5,19,13,1) 0%,
    rgba(10,31,20,.98) 30%,
    rgba(8,22,15,.98) 70%,
    rgba(5,19,13,1) 100%) !important;
  border-bottom: 1px solid rgba(16,185,129,.15) !important;
  box-shadow: 0 2px 20px rgba(0,0,0,.3) !important;
}

/* ══════════════════════════════════════════════
   DESKTOP SECTION NAV DOTS — nicer active state
══════════════════════════════════════════════ */
.dn-item.active .dn-dot {
  background: var(--grad-brand) !important;
  border: none !important;
  box-shadow: 0 0 0 3px rgba(16,185,129,.18), 0 0 10px rgba(16,185,129,.3) !important;
}
.dn-label {
  background: var(--glass-bg) !important;
  backdrop-filter: blur(10px) !important;
  border: 1px solid var(--glass-border) !important;
}

/* ══════════════════════════════════════════════
   MARKET PRICE BAR — gold treatment
══════════════════════════════════════════════ */
.pbar {
  background: linear-gradient(100deg,
    rgba(245,158,11,.08) 0%,
    rgba(251,191,36,.05) 60%,
    rgba(245,158,11,.06) 100%) !important;
  border: 1px solid rgba(245,158,11,.2) !important;
  border-radius: 10px !important;
}

/* ══════════════════════════════════════════════
   MODALS — sharper glass treatment
══════════════════════════════════════════════ */
.ai-modal,
.acct-modal {
  background: rgba(15,21,33,.95) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border: 1px solid rgba(255,255,255,.09) !important;
  box-shadow: 0 24px 80px rgba(0,0,0,.7), 0 1px 0 rgba(255,255,255,.06) inset !important;
}
.modal-bd,
.acct-bd {
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
}

/* ══════════════════════════════════════════════
   CART DRAWER — glass panel
══════════════════════════════════════════════ */
.cart-drawer {
  background: rgba(11,14,24,.97) !important;
  backdrop-filter: blur(20px) !important;
  border-left: 1px solid rgba(255,255,255,.08) !important;
}
.cart-item {
  background: rgba(255,255,255,.03) !important;
  border: 1px solid rgba(255,255,255,.07) !important;
  border-radius: 10px !important;
  transition: border-color .2s !important;
}
.cart-item:hover {
  border-color: rgba(16,185,129,.18) !important;
}

/* ══════════════════════════════════════════════
   SECTION ALTERNATING BG — subtle mesh
══════════════════════════════════════════════ */
.alt {
  background:
    radial-gradient(ellipse 60% 50% at 80% 50%, rgba(16,185,129,.03) 0%, transparent 70%),
    var(--bg2) !important;
}

/* ══════════════════════════════════════════════
   BLOCKCHAIN CHAIN NODES — glass surface
══════════════════════════════════════════════ */
.cn {
  background: rgba(15,21,33,.8) !important;
  border: 1px solid var(--glass-border) !important;
  backdrop-filter: blur(8px) !important;
  transition: all .26s var(--ease-spring) !important;
}
.cn:hover {
  background: rgba(16,185,129,.08) !important;
  border-color: rgba(16,185,129,.35) !important;
  box-shadow: 0 0 0 1px rgba(16,185,129,.12), 0 8px 24px rgba(0,0,0,.4) !important;
}
.cn.hub {
  border-color: rgba(16,185,129,.45) !important;
  box-shadow: 0 0 0 2px rgba(16,185,129,.15) !important;
}

/* ══════════════════════════════════════════════
   PWA BANNER — match glass language
══════════════════════════════════════════════ */
#pwa-banner {
  background: rgba(15,21,33,.96) !important;
  backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(16,185,129,.22) !important;
  box-shadow: 0 12px 40px rgba(0,0,0,.55) !important;
}

/* ══════════════════════════════════════════════
   FADE-IN ANIMATIONS — stagger children in grids
══════════════════════════════════════════════ */
.cc:nth-child(1)  { transition-delay: .04s; }
.cc:nth-child(2)  { transition-delay: .08s; }
.cc:nth-child(3)  { transition-delay: .12s; }
.cc:nth-child(4)  { transition-delay: .16s; }
.cc:nth-child(5)  { transition-delay: .20s; }
.cc:nth-child(6)  { transition-delay: .24s; }

/* ══════════════════════════════════════════════
   SECTION DIVIDERS — gradient line
══════════════════════════════════════════════ */
.sec + .sec,
.sec + .alt,
.alt + .sec,
.chain-sec + .sec,
.trading-sec + .sec {
  border-top: 1px solid transparent;
  background-origin: border-box;
}

/* Exchange links — glass cards */
.exch-link {
  background: rgba(255,255,255,.03) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  border-radius: 10px !important;
  transition: all .2s var(--ease-spring) !important;
}
.exch-link:hover {
  background: rgba(16,185,129,.07) !important;
  border-color: rgba(16,185,129,.3) !important;
  transform: translateX(4px) !important;
  box-shadow: 0 4px 18px rgba(0,0,0,.3) !important;
}

/* QR demo panel */
.qr-demo {
  border: 1px solid rgba(16,185,129,.18) !important;
  border-radius: 14px !important;
}

/* Trust credentials */
.bc-trust {
  background: linear-gradient(135deg,
    rgba(16,185,129,.06) 0%,
    rgba(245,158,11,.04) 100%) !important;
  border: 1px solid rgba(16,185,129,.15) !important;
  border-radius: 16px !important;
}
.bc-trust-item {
  background: rgba(255,255,255,.025) !important;
  border: 1px solid rgba(255,255,255,.07) !important;
  border-radius: 10px !important;
  transition: border-color .2s !important;
}
.bc-trust-item:hover {
  border-color: rgba(16,185,129,.18) !important;
}

/* Contact info items */
.ci-box {
  background: linear-gradient(135deg, rgba(16,185,129,.15), rgba(52,211,153,.06)) !important;
  border: 1px solid rgba(16,185,129,.2) !important;
  transition: all .25s var(--ease-spring) !important;
}
.ci-item:hover .ci-box {
  background: var(--grad-brand) !important;
  border-color: transparent !important;
  box-shadow: 0 4px 14px rgba(16,185,129,.3) !important;
}

/* ══════════════════════════════════════════════
   RESPONSIVE — keep glass effect on mobile
══════════════════════════════════════════════ */
@media (max-width: 640px) {
  .cc {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .hero h1 .acc,
  .hero h1 .gold {
    filter: none !important;
  }
}

/* ══════════════════════════════════════════════
   COMMODITY CARD ENTER ANIMATION  (FIX F4)
   Replaces 31 JS setTimeout calls + 60 forced
   style mutations with a single compositor pass.

   CommodityGrid.js sets style="--i:N" on each
   .cc element (N = position in the filtered list).
   Adding .cc-enter triggers the animation with
   a stagger derived from --i, zero JS involved.
══════════════════════════════════════════════ */
@keyframes ccFadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

.cc-enter {
  animation: ccFadeUp 0.25s ease forwards;
  animation-delay: calc(var(--i, 0) * 22ms);
  /* Start invisible — animation brings it in */
  opacity: 0;
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .cc-enter {
    animation: none;
    opacity: 1;
  }
}
                                                                                                