/* MUTA v241 - 06-phase-b-header-hero.css - PHASE B - Header + Hero - Search + Mega Menu + Floated Bottom Bar + Live Terminal + Trust Badges */
/* Best of موتا مارکت + هوشمند + هوشمند + هوشمند + هوشمند + Apple + هوشمند - High Impact Medium Effort */
/* Only transform+opacity, GPU, no jump, header 56px stable, ticker 36px stable, 0 !important */

/* ==================== HEADER SEARCH PROMINENT - موتا مارکت + هوشمند COMMAND PALETTE ==================== */

#headerSearchWrap{
  display: flex;
  align-items: center;
  position: relative;
  margin-left: 16px;
  flex: 1;
  max-width: 380px;
}
#headerSearchInput{
  width: 100%;
  height: 38px;
  padding: 0 36px 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text);
  font-size: .84rem;
  font-weight: 500;
  transition: transform 200ms cubic-bezier(.16,1,.3,1), background 200ms cubic-bezier(.4,0,.2,1), border-color 200ms cubic-bezier(.4,0,.2,1), box-shadow 200ms cubic-bezier(.4,0,.2,1);
  will-change: transform, background, border-color;
}
#headerSearchInput::placeholder{
  color: var(--text-faint);
}
#headerSearchInput:focus{
  transform: scale(1.02);
  background: rgba(255,255,255,.08);
  border-color: rgba(212,175,55,.24);
  box-shadow: 0 0 0 3px rgba(212,175,55,.12), 0 4px 16px rgba(0,0,0,.12);
  outline: none;
}
#headerSearchIcon{
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-faint);
  pointer-events: none;
  transition: color 200ms ease, transform 200ms cubic-bezier(.16,1,.3,1);
  will-change: transform, color;
}
#headerSearchWrap:focus-within #headerSearchIcon{
  color: var(--gold);
  transform: translateY(-50%) scale(1.1);
}

/* Search dropdown - موتا مارکت autocomplete + هوشمند command palette */
#headerSearchDropdown{
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  background: rgba(18,18,22,.96);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0,0,0,.24), 0 0 0 1px rgba(255,255,255,.04);
  max-height: 380px;
  overflow-y: auto;
  opacity:0;
  transform: translateY(8px) scale(.98);
  pointer-events: none;
  transition: opacity 250ms cubic-bezier(.4,0,.2,1), transform 300ms cubic-bezier(.16,1,.3,1);
  will-change: transform, opacity;
  z-index: 1003;
  contain: layout style paint;
}
#headerSearchDropdown.open{
  opacity:1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
#headerSearchDropdown .search-group{
  padding: 12px;
}
#headerSearchDropdown .search-group-title{
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--text-faint);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
#headerSearchDropdown .search-item{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 150ms cubic-bezier(.16,1,.3,1), background 150ms ease;
  will-change: transform;
}
#headerSearchDropdown .search-item:hover{
  transform: translateX(-3px);
  background: rgba(255,255,255,.06);
}
#headerSearchDropdown .search-item .si-icon{
  width: 32px; height: 32px;
  border-radius: 8px;
  background: rgba(255,255,255,.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  flex-shrink: 0;
}
#headerSearchDropdown .search-item .si-name{
  font-weight: 600;
  font-size: .84rem;
}
#headerSearchDropdown .search-item .si-price{
  margin-right: auto;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: .78rem;
  color: var(--text-dim);
}
#headerSearchDropdown .search-item .si-change{
  font-size: .72rem;
  padding: 2px 6px;
  border-radius: 20px;
  font-weight: 600;
}
#headerSearchDropdown .search-item .si-change.up{
  background: var(--up-soft);
  color: var(--up);
}
#headerSearchDropdown .search-item .si-change.down{
  background: var(--down-soft);
  color: var(--down);
}

/* ==================== MEGA MENU MARKETS - موتا مارکت MEGA + هوشمند SHADER ==================== */

#megaMenuMarkets{
  position: absolute;
  top: 56px;
  left: 50%;
  transform: translateX(-50%) translateY(8px) scale(.98);
  width: min(960px, 92vw);
  background: rgba(18,18,22,.96);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(0,0,0,.32), 0 0 0 1px rgba(255,255,255,.04);
  padding: 20px;
  opacity:0;
  pointer-events: none;
  transition: opacity 250ms cubic-bezier(.4,0,.2,1), transform 350ms cubic-bezier(.16,1,.3,1);
  will-change: transform, opacity;
  z-index: 1002;
  contain: layout style paint;
}
#megaMenuMarkets.open{
  opacity:1;
  transform: translateX(-50%) translateY(0) scale(1);
  pointer-events: auto;
}
#megaMenuMarkets .mega-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 16px;
}
#megaMenuMarkets .mega-col h4{
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: -.01em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
}
#megaMenuMarkets .mega-col h4 .dot{
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: premiumPulseDot 2s ease infinite;
}
#megaMenuMarkets .mega-item{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 200ms cubic-bezier(.16,1,.3,1), background 200ms ease, border-color 200ms ease;
  will-change: transform;
}
#megaMenuMarkets .mega-item:hover{
  transform: translateY(-2px) scale(1.01);
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.06);
}
#megaMenuMarkets .mega-item .mi-icon{
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
}
#megaMenuMarkets .mega-item .mi-info{
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
#megaMenuMarkets .mega-item .mi-name{
  font-weight: 700;
  font-size: .84rem;
}
#megaMenuMarkets .mega-item .mi-symbol{
  font-size: .68rem;
  color: var(--text-faint);
  font-family: var(--font-mono);
}
#megaMenuMarkets .mega-item .mi-price{
  margin-right: auto;
  text-align: left;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
#megaMenuMarkets .mega-item .mi-price .p{
  font-weight: 700;
  font-size: .84rem;
}
#megaMenuMarkets .mega-item .mi-price .c{
  font-size: .70rem;
  font-weight: 600;
}
#megaMenuMarkets .mega-footer{
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .76rem;
  color: var(--text-faint);
}
#megaMenuMarkets .mega-footer a{
  color: var(--gold);
  font-weight: 600;
  transition: transform 150ms ease;
}
#megaMenuMarkets .mega-footer a:hover{
  transform: translateX(-3px);
}

/* ==================== FLOATED BOTTOM BAR MOBILE - هوشمند 4 ICONS NEAR THUMB ==================== */

#floatedBottomBar{
  position: fixed;
  bottom: 16px;
  left: 12px;
  right: 12px;
  height: 64px;
  background: rgba(18,18,22,.88);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 24px;
  box-shadow: 0 12px 32px rgba(0,0,0,.28), 0 0 0 1px rgba(255,255,255,.04);
  display: none;
  align-items: center;
  justify-content: space-around;
  padding: 0 8px;
  z-index: 1001;
  transform: translateY(100px);
  opacity:0;
  transition: transform 400ms cubic-bezier(.16,1,.3,1), opacity 300ms ease;
  will-change: transform, opacity;
  contain: layout style paint;
}
#floatedBottomBar.visible{
  transform: translateY(0);
  opacity:1;
}
#floatedBottomBar .fbb-item{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 14px;
  border-radius: 16px;
  cursor: pointer;
  transition: transform 200ms cubic-bezier(.16,1,.3,1), background 200ms ease, color 200ms ease;
  will-change: transform;
  color: var(--text-faint);
  font-size: .64rem;
  font-weight: 600;
  min-width: 56px;
}
#floatedBottomBar .fbb-item .fbb-icon{
  font-size: 1.2rem;
  transition: transform 200ms cubic-bezier(.16,1,.3,1);
  will-change: transform;
}
#floatedBottomBar .fbb-item.active{
  background: rgba(212,175,55,.14);
  color: var(--gold);
  transform: scale(1.05);
}
#floatedBottomBar .fbb-item.active .fbb-icon{
  transform: scale(1.15);
}
#floatedBottomBar .fbb-item:hover{
  transform: translateY(-2px) scale(1.05);
  background: rgba(255,255,255,.06);
  color: var(--text);
}
#floatedBottomBar .fbb-item:active{
  transform: scale(.92);
}
#floatedBottomBar .fbb-fab{
  width: 48px; height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-2) 100%);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(212,175,55,.32);
  cursor: pointer;
  transition: transform 200ms cubic-bezier(.16,1,.3,1), box-shadow 200ms ease;
  will-change: transform;
  flex-shrink: 0;
}
#floatedBottomBar .fbb-fab:hover{
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 12px 32px rgba(212,175,55,.40);
}
#floatedBottomBar .fbb-fab:active{
  transform: scale(.92);
}

@media (max-width: 1024px){
  #floatedBottomBar{
    display: flex;
  }
  #headerSearchWrap{
    display: none;
  }
}

/* ==================== HERO MASSIVE + LIVE TERMINAL MOCK - هوشمند + هوشمند + هوشمند ==================== */

#view-home .section-title{
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.95;
  margin-bottom: 16px;
  transition: letter-spacing 300ms cubic-bezier(.16,1,.3,1), transform 300ms cubic-bezier(.16,1,.3,1);
  will-change: transform, letter-spacing;
}
#view-home .section-title:hover{
  letter-spacing: -0.03em;
  transform: translateY(-2px);
}
#view-home .section-desc{
  font-size: clamp(.88rem, 1.2vw, 1.02rem);
  line-height: 1.8;
  max-width: 680px;
  color: var(--text-dim);
}

/* Live terminal mock - هوشمند ENG-2703 style */
#heroLiveTerminal{
  margin: 24px 0;
  background: rgba(12,12,14,.92);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,.24), 0 0 0 1px rgba(255,255,255,.04);
  contain: layout style paint;
  animation: appleSlideUp 600ms cubic-bezier(.16,1,.3,1) 200ms both;
  transition: transform 300ms cubic-bezier(.16,1,.3,1), box-shadow 300ms ease;
  will-change: transform;
}
#heroLiveTerminal:hover{
  transform: translateY(-4px) scale(1.005);
  box-shadow: 0 24px 64px rgba(0,0,0,.32), 0 0 0 1px rgba(212,175,55,.12), 0 0 40px rgba(212,175,55,.08);
}
#heroLiveTerminal .hlt-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255,255,255,.02);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
#heroLiveTerminal .hlt-title{
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: .84rem;
  letter-spacing: -.01em;
}
#heroLiveTerminal .hlt-title .dot{
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 4px rgba(16,185,129,.20);
  animation: premiumPulseDot 2s ease infinite;
}
#heroLiveTerminal .hlt-actions{
  display: flex;
  gap: 6px;
}
#heroLiveTerminal .hlt-actions span{
  width: 12px; height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
}
#heroLiveTerminal .hlt-actions span:nth-child(1){ background: #ef4444; }
#heroLiveTerminal .hlt-actions span:nth-child(2){ background: #eab308; }
#heroLiveTerminal .hlt-actions span:nth-child(3){ background: #10b981; }
#heroLiveTerminal .hlt-body{
  display: grid;
  grid-template-columns: 1.4fr .9fr;
  gap: 0;
  min-height: 180px;
}
#heroLiveTerminal .hlt-chart{
  padding: 14px;
  border-left: 1px solid rgba(255,255,255,.06);
  position: relative;
  overflow: hidden;
}
#heroLiveTerminal .hlt-chart canvas{
  width: 100%;
  height: 120px;
  display: block;
}
#heroLiveTerminal .hlt-chart .hlt-price{
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 4px;
  transition: color 200ms ease, transform 200ms cubic-bezier(.16,1,.3,1);
  will-change: transform;
}
#heroLiveTerminal .hlt-chart .hlt-change{
  font-size: .76rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  display: inline-flex;
}
#heroLiveTerminal .hlt-chart .hlt-change.up{
  background: var(--up-soft);
  color: var(--up);
}
#heroLiveTerminal .hlt-chart .hlt-change.down{
  background: var(--down-soft);
  color: var(--down);
}
#heroLiveTerminal .hlt-orderbook{
  padding: 14px;
  font-family: var(--font-mono);
  font-size: .72rem;
}
#heroLiveTerminal .hlt-orderbook h5{
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--text-faint);
  margin-bottom: 8px;
}
#heroLiveTerminal .hlt-orderbook .ob-row{
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
  transition: background 150ms ease, transform 150ms ease;
  border-radius: 4px;
  will-change: transform;
}
#heroLiveTerminal .hlt-orderbook .ob-row:hover{
  background: rgba(255,255,255,.04);
  transform: translateX(-2px);
}
#heroLiveTerminal .hlt-orderbook .ob-row.bid{
  color: var(--up);
}
#heroLiveTerminal .hlt-orderbook .ob-row.ask{
  color: var(--down);
}
#heroLiveTerminal .hlt-footer{
  padding: 10px 16px;
  background: rgba(255,255,255,.02);
  border-top: 1px solid rgba(255,255,255,.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .72rem;
  color: var(--text-faint);
}
#heroLiveTerminal .hlt-footer .hlt-volume{
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--text-dim);
  font-weight: 600;
}
#heroLiveTerminal .hlt-footer .hlt-volume span{
  color: var(--text);
  font-weight: 800;
}

@media (max-width: 768px){
  #heroLiveTerminal .hlt-body{
    grid-template-columns: 1fr;
  }
  #heroLiveTerminal .hlt-chart{
    border-left: none;
    border-bottom: 1px solid rgba(255,255,255,.06);
  }
}

/* ==================== TRUST BADGES + LOGO WALL - موتا مارکت + هوشمند + هوشمند ==================== */

#heroTrustBadges{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
  animation: appleFadeIn 500ms cubic-bezier(.4,0,.2,1) 400ms both;
}
#heroTrustBadges .trust-badge{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 600;
  color: var(--text-dim);
  transition: transform 200ms cubic-bezier(.16,1,.3,1), background 200ms ease, border-color 200ms ease, color 200ms ease;
  will-change: transform;
}
#heroTrustBadges .trust-badge:hover{
  transform: translateY(-2px) scale(1.03);
  background: rgba(255,255,255,.06);
  border-color: rgba(212,175,55,.16);
  color: var(--text);
}
#heroTrustBadges .trust-badge .tb-icon{
  font-size: .9rem;
}
#heroTrustBadges .trust-badge.live{
  background: rgba(16,185,129,.10);
  border-color: rgba(16,185,129,.20);
  color: #10b981;
}
#heroTrustBadges .trust-badge.gold{
  background: rgba(212,175,55,.10);
  border-color: rgba(212,175,55,.20);
  color: var(--gold);
}

#heroLogoWall{
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 20px 0;
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
  overflow-x: auto;
  scrollbar-width: none;
  animation: appleFadeIn 600ms ease 500ms both;
}
#heroLogoWall::-webkit-scrollbar{ display: none; }
#heroLogoWall .lw-label{
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--text-faint);
  white-space: nowrap;
  flex-shrink: 0;
}
#heroLogoWall .lw-logos{
  display: flex;
  align-items: center;
  gap: 24px;
}
#heroLogoWall .lw-logo{
  font-size: .84rem;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--text-faint);
  opacity:.6;
  filter: grayscale(1);
  transition: transform 200ms cubic-bezier(.16,1,.3,1), opacity 200ms ease, filter 200ms ease, color 200ms ease;
  will-change: transform;
  white-space: nowrap;
  cursor: default;
}
#heroLogoWall .lw-logo:hover{
  transform: translateY(-2px) scale(1.05);
  opacity:1;
  filter: grayscale(0);
  color: var(--text);
}
#heroLogoWall .lw-logo.src1{
  font-family: 'Inter', sans-serif;
  font-weight: 800;
}
#heroLogoWall .lw-logo.src2{
  font-family: var(--font-persian);
  color: var(--gold);
}
#heroLogoWall .lw-logo.src3{
  font-family: 'Geist', sans-serif;
}

/* Counter ticking - هوشمند style */
#heroCounter{
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin: 12px 0;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  animation: appleSlideUp 500ms cubic-bezier(.16,1,.3,1) 300ms both;
}
#heroCounter .hc-label{
  font-size: .78rem;
  color: var(--text-faint);
  font-family: var(--font-persian);
}
#heroCounter .hc-value{
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--text);
  transition: transform 300ms cubic-bezier(.16,1,.3,1), color 200ms ease;
  will-change: transform;
}
#heroCounter .hc-value.updating{
  animation: counterTick 400ms cubic-bezier(.16,1,.3,1);
}

/* Ensure header 56px + ticker 36px stable */
#siteHeader{
  height: 56px;
  min-height: 56px;
  max-height: 56px;
  contain: layout style paint;
  display: flex;
  align-items: center;
}
#siteHeader .header-inner{
  display: flex;
  align-items: center;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  gap: 12px;
}
#tickerTape{
  height: 36px;
  min-height: 36px;
  max-height: 36px;
  contain: layout style paint;
}
