/* Ayster proprietary software. Copyright © 2026 Ayster. All rights reserved. */
/* AYSTER 2026 — Tesla-inspired premium visual system */
:root{
  --ay-bg:#ffffff;
  --ay-surface:#ffffff;
  --ay-surface-2:#faf8ff;
  --ay-surface-3:#f7f7f8;
  --ay-text:#23262b;
  --ay-muted:#6b7280;
  --ay-line:rgba(0,0,0,.10);
  --ay-line-strong:rgba(0,0,0,.18);
  --ay-white:#ffffff;
  --ay-red:#7c3aed;
  --ay-red-soft:#7c3aed;
  --ay-shadow:0 16px 44px rgba(46,16,101,.10);
  --ay-radius:18px;
}
html{background:var(--ay-bg)!important;scroll-behavior:smooth}
*{box-sizing:border-box}
body{
  margin:0!important;
  color:var(--ay-text)!important;
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI",Inter,Arial,sans-serif!important;
  background:#ffffff!important;
  min-height:100vh;
  -webkit-font-smoothing:antialiased;
}
body::before{
  content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;
  background:linear-gradient(115deg,rgba(255,255,255,.025),transparent 32%,transparent 70%,rgba(255,255,255,.018));
}

/* Hide legacy duplicate navigation; global nav is injected by JS */
body>header,.ayster-shell,.ayster-premium-nav{display:none!important}

/* Global nav */
.ayster-global-nav{
  position:sticky;top:0;z-index:100000;pointer-events:auto!important;isolation:isolate;
  background:rgba(255,255,255,.92);
  border-bottom:1px solid rgba(0,0,0,.08);
  backdrop-filter:blur(22px) saturate(150%);
  -webkit-backdrop-filter:blur(22px) saturate(150%);
}
.agn-inner{
  max-width:1500px;margin:0 auto;min-height:68px;padding:0 clamp(18px,4vw,56px);
  display:flex;align-items:center;gap:24px;
}
.agn-brand{display:flex;align-items:center;gap:10px;text-decoration:none!important;color:#23262b!important;white-space:nowrap;font-size:18px;font-weight:800;letter-spacing:.08em}
.agn-mark{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;border:1px solid rgba(124,58,237,.30);background:linear-gradient(145deg,#7c3aed,#6d28d9);color:#ffffff;font-weight:900;font-size:15px;box-shadow:inset 0 1px rgba(255,255,255,.13),0 8px 20px rgba(0,0,0,.35)}
.agn-links{display:flex;align-items:center;gap:4px;margin-left:auto;pointer-events:auto!important}.agn-links>*{pointer-events:auto!important}
.agn-direct,.agn-trigger{border:0!important;background:transparent!important;box-shadow:none!important;color:#3c4149!important;text-decoration:none!important;padding:10px 11px!important;border-radius:8px!important;font:600 13px/1.1 inherit!important;cursor:pointer;display:flex;align-items:center;gap:6px;transition:.18s ease!important;white-space:nowrap}
.agn-direct:hover,.agn-trigger:hover,.agn-item.open>.agn-trigger,.agn-direct.active{background:rgba(124,58,237,.07)!important;color:#7c3aed!important;transform:none!important}
.agn-item{position:relative}
.agn-chevron{font-size:10px;opacity:.65;transition:.18s ease}.agn-item.open .agn-chevron{transform:rotate(180deg)}
.agn-menu{display:none;position:absolute;z-index:100001;pointer-events:auto!important;top:calc(100% + 10px);left:0;width:285px;padding:8px;background:rgba(255,255,255,.98);border:1px solid rgba(0,0,0,.10);border-radius:14px;box-shadow:0 28px 70px rgba(46,16,101,.18);backdrop-filter:blur(20px)}
.agn-item.open>.agn-menu{display:block;animation:agnIn .16s ease}
@keyframes agnIn{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:none}}
.agn-menu a{display:flex;align-items:center;gap:12px;padding:11px 12px;border-radius:10px;color:#23262b!important;text-decoration:none!important;transition:.16s ease}
.agn-menu a:hover{background:rgba(124,58,237,.06)!important}
.agn-menu-icon{width:31px;height:31px;display:grid;place-items:center;border-radius:9px;background:#f5f1fe;border:1px solid rgba(0,0,0,.08);font-size:14px;flex:0 0 auto}
.agn-menu strong{display:block;font-size:13px;line-height:1.2}.agn-menu small{display:block;color:#6b7280;font-size:11px;margin-top:3px;line-height:1.25}
.agn-ai{margin-left:6px!important;background:linear-gradient(135deg,#7c3aed,#7c3aed 55%,#6d28d9)!important;color:#ffffff!important;padding:10px 14px!important;font-weight:800!important}
.agn-ai:hover{background:#7c3aed!important;color:#ffffff!important}
.agn-profile{width:34px;height:34px;border-radius:50%;border:1px solid rgba(0,0,0,.15)!important;background:#7c3aed!important;color:#fff!important;padding:0!important;display:grid!important;place-items:center!important;font-weight:800!important}
.agn-profile{overflow:hidden!important;position:relative!important}.agn-profile-img{width:100%;height:100%;object-fit:cover;display:block;border-radius:inherit}.agn-profile-fallback{display:grid;place-items:center;width:100%;height:100%}
.agn-mobile{display:none;margin-left:auto;border:1px solid rgba(0,0,0,.14)!important;background:#ffffff!important;color:#23262b!important;border-radius:10px!important;width:42px;height:42px;font-size:20px;box-shadow:none!important}

/* Typography */
h1,h2,h3,h4,h5{color:#23262b!important;letter-spacing:-.025em!important}
h1{font-weight:750!important}h2,h3{font-weight:700!important}
p,.muted,.subtitle,.description{color:var(--ay-muted)!important}
a{transition:.18s ease}
.gold,.brand,a.gold{color:#7c3aed!important}

/* Premium surfaces */
.card,.panel,.widget,.glass-card,.dashboard-card,.stat-card,.feature-card,.profile-card,.settings-card,.post-card,.message-card,.auth-box{
  background:#ffffff!important;
  border:1px solid var(--ay-line)!important;
  border-radius:var(--ay-radius)!important;
  box-shadow:0 12px 34px rgba(46,16,101,.08)!important;
}
.card:hover,.feature-card:hover,.dashboard-card:hover,.stat-card:hover{
  border-color:var(--ay-line-strong)!important;
  box-shadow:0 18px 44px rgba(46,16,101,.12)!important;
}

/* Buttons */
button,.btn,.primary-btn,.cta,input[type="submit"],input[type="button"]{font-family:inherit!important}
button,.btn,.primary-btn,.cta{
  border:1px solid rgba(0,0,0,.14)!important;
  background:#fff!important;color:#23262b!important;border-radius:10px!important;
  box-shadow:none!important;font-weight:700!important;transition:.18s ease!important
}
button:hover,.btn:hover,.primary-btn:hover,.cta:hover{background:#f1f0ee!important;color:#23262b!important;transform:translateY(-1px)}
button.secondary,.btn.secondary,.ghost,.outline{background:#f7f7f8!important;color:#23262b!important;border-color:rgba(0,0,0,.14)!important}
button.gold,.btn.gold,.primary-btn.gold,.cta.gold,.auth-box button{background:linear-gradient(135deg,#7c3aed,#7c3aed 55%,#6d28d9)!important;color:#ffffff!important;border-color:#6d28d9!important}

/* Inputs */
input,textarea,select,.input{
  color:#23262b!important;background:#ffffff!important;border:1px solid rgba(0,0,0,.14)!important;border-radius:10px!important;outline:none!important;box-shadow:none!important
}
input:focus,textarea:focus,select:focus,.input:focus{border-color:rgba(124,58,237,.55)!important;box-shadow:0 0 0 3px rgba(124,58,237,.10)!important}
input::placeholder,textarea::placeholder{color:#9aa0a8!important}

/* Chips and badges */
.pill,.badge,.tag,.chip{background:rgba(0,0,0,.04)!important;color:#3c4149!important;border:1px solid rgba(0,0,0,.10)!important}
.status,.success,.online{color:#5fdb96!important}
.notice{background:rgba(124,58,237,.05)!important;border-color:rgba(124,58,237,.20)!important;color:#3c4149!important}
hr{border:0;border-top:1px solid rgba(0,0,0,.08)}

/* Auth */
.auth-box{width:min(460px,calc(100% - 32px))!important;margin:70px auto!important;padding:34px!important;background:linear-gradient(160deg,#ffffff,#faf8ff)!important}
.auth-box a{color:#7c3aed!important;text-decoration:underline;text-underline-offset:3px}

/* Remove legacy SuperApp floating shortcut strips */
body.superapp-page>div[style*="position:fixed"][style*="bottom:"]{display:none!important}

/* Scrollbars */
*{scrollbar-width:thin;scrollbar-color:#c9c4bf #f7f7f8}
::-webkit-scrollbar{width:10px;height:10px}::-webkit-scrollbar-track{background:#f7f7f8}::-webkit-scrollbar-thumb{background:#c9c4bf;border:2px solid #f7f7f8;border-radius:10px}

@media(max-width:1120px){
  .agn-inner{min-height:62px}.agn-mobile{display:block}.agn-links{display:none;position:absolute;top:62px;left:0;right:0;padding:12px 16px 22px;background:rgba(255,255,255,.98);border-bottom:1px solid rgba(0,0,0,.08);max-height:calc(100vh - 62px);overflow:auto}.ayster-global-nav.mobile-open .agn-links{display:block}.agn-item{width:100%}.agn-direct,.agn-trigger{width:100%;justify-content:space-between;padding:14px 12px!important;font-size:14px!important}.agn-ai{margin:8px 0 0!important;justify-content:center!important}.agn-menu{position:static;width:auto;margin:2px 0 9px;box-shadow:none;background:rgba(0,0,0,.03);border-radius:12px}.agn-item.open>.agn-menu{display:block}.agn-profile{width:100%!important;border-radius:10px!important;height:42px!important}}

/* AYSTER V6 — cinematic homepage + dashboard refinement */
body:has(#earthCanvas) .hero{
  min-height:calc(100vh - 68px)!important;
  max-width:1440px!important;margin:0 auto!important;
  padding:clamp(64px,8vw,120px) clamp(24px,6vw,92px)!important;
  display:grid!important;grid-template-columns:minmax(0,1fr) minmax(420px,.92fr)!important;
  align-items:center!important;gap:clamp(40px,7vw,110px)!important;
  overflow:hidden!important;
}
body:has(#earthCanvas) .hero-text{max-width:680px!important;position:relative;z-index:2}
body:has(#earthCanvas) .hero .badge{display:inline-flex!important;width:auto!important;padding:8px 12px!important;margin:0 0 22px!important;border-radius:999px!important;font-size:12px!important;letter-spacing:.13em!important;text-transform:uppercase!important;background:rgba(255,255,255,.055)!important}
body:has(#earthCanvas) .hero h1{font-size:clamp(54px,6.2vw,96px)!important;line-height:.94!important;letter-spacing:-.055em!important;margin:0 0 28px!important;max-width:760px!important;text-wrap:balance}
body:has(#earthCanvas) .hero .subtitle{font-size:clamp(17px,1.5vw,21px)!important;line-height:1.6!important;max-width:620px!important;margin:0 0 34px!important;color:#b7b9be!important}
body:has(#earthCanvas) .hero .buttons{display:flex!important;gap:12px!important;flex-wrap:wrap!important}
body:has(#earthCanvas) .hero .btn{min-height:48px!important;padding:14px 20px!important;border-radius:9px!important;text-decoration:none!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;font-size:14px!important}
body:has(#earthCanvas) .earth-container{width:min(48vw,650px)!important;aspect-ratio:1!important;min-height:0!important;justify-self:center!important;position:relative!important;filter:drop-shadow(0 36px 70px rgba(0,0,0,.5))}
body:has(#earthCanvas) #earthCanvas{width:100%!important;height:100%!important;display:block!important}
body:has(#earthCanvas) .earth-overlay{position:absolute!important;left:50%!important;bottom:-18px!important;transform:translateX(-50%)!important;width:min(88%,520px)!important;padding:16px 20px!important;text-align:center!important;border:1px solid rgba(255,255,255,.1)!important;border-radius:14px!important;background:rgba(4,14,36,.72)!important;backdrop-filter:blur(18px)!important}
body:has(#earthCanvas) .earth-overlay h3{font-size:13px!important;text-transform:uppercase!important;letter-spacing:.12em!important;margin:0 0 5px!important}
body:has(#earthCanvas) .earth-overlay p{font-size:12px!important;line-height:1.45!important;margin:0!important}
body:has(#earthCanvas) .ayster-explore{padding-top:80px!important;border-top:1px solid rgba(255,255,255,.07)!important}

/* Dashboard: more breathing room and cleaner surfaces */
body:has(#userName) main{max-width:1280px!important;margin:0 auto!important;padding-left:clamp(20px,4vw,52px)!important;padding-right:clamp(20px,4vw,52px)!important}
body:has(#userName) .card{border-color:rgba(0,0,0,.09)!important;background:#ffffff!important;box-shadow:0 16px 44px rgba(46,16,101,.08)!important}
body:has(#userName) footer{opacity:.62!important;padding:36px 20px!important}

@media(max-width:900px){
 body:has(#earthCanvas) .hero{grid-template-columns:1fr!important;min-height:auto!important;padding-top:72px!important;text-align:center!important}
 body:has(#earthCanvas) .hero-text{margin:0 auto!important}
 body:has(#earthCanvas) .hero .subtitle{margin-left:auto!important;margin-right:auto!important}
 body:has(#earthCanvas) .hero .buttons{justify-content:center!important}
 body:has(#earthCanvas) .earth-container{width:min(88vw,560px)!important}
}
/* v35 music page utility */
#sidebar.hidden{display:none}.layout:has(#sidebar.hidden){grid-template-columns:1fr}

/* AYSTER v66 NATIVE MENU — opening uses HTML <details>, not JavaScript */
html.ayster-menu-open,html.ayster-menu-open body{overflow:hidden!important}
.ayster-global-nav{
  position:sticky!important;top:0!important;z-index:2147483000!important;
  background:rgba(255,255,255,.96)!important;border-bottom:1px solid rgba(0,0,0,.08)!important;
  -webkit-backdrop-filter:blur(22px) saturate(150%)!important;backdrop-filter:blur(22px) saturate(150%)!important;
  pointer-events:auto!important;isolation:isolate!important
}
.ayster-global-nav>summary{list-style:none!important;-webkit-tap-highlight-color:transparent!important;cursor:pointer!important;user-select:none!important}
.ayster-global-nav>summary::-webkit-details-marker{display:none!important}
.agn-bar{height:64px;max-width:1500px;margin:0 auto;padding:0 18px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.agn-brand{display:flex!important;align-items:center!important;gap:10px!important;color:#23262b!important;font-weight:850!important;letter-spacing:.14em!important;font-size:14px!important;pointer-events:none!important}
.agn-mark{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;border:1px solid rgba(124,58,237,.30);background:#7c3aed;color:#fff;font-weight:850;letter-spacing:0}
.agn-mobile{display:grid!important;place-items:center!important;width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;border:1px solid rgba(0,0,0,.14)!important;border-radius:13px!important;background:#ffffff!important;color:#23262b!important;box-shadow:0 6px 18px rgba(46,16,101,.10)!important;pointer-events:none!important}
.agn-hamburger{width:20px;height:16px;display:flex;flex-direction:column;justify-content:space-between;pointer-events:none}
.agn-hamburger i{display:block;width:20px;height:2px;border-radius:99px;background:#23262b;transition:transform .2s ease,opacity .2s ease}
.ayster-global-nav[open] .agn-hamburger i:nth-child(1){transform:translateY(7px) rotate(45deg)}
.ayster-global-nav[open] .agn-hamburger i:nth-child(2){opacity:0}
.ayster-global-nav[open] .agn-hamburger i:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
.agn-backdrop{display:none;position:fixed;inset:0;z-index:2147483001;background:rgba(0,0,0,.58);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}
.ayster-global-nav[open] .agn-backdrop{display:block}
.agn-drawer{position:fixed;top:0;right:0;z-index:2147483002;width:min(340px,88vw);height:100dvh;padding:calc(env(safe-area-inset-top) + 18px) 16px calc(env(safe-area-inset-bottom) + 18px);background:#ffffff;border-left:1px solid rgba(0,0,0,.08);box-shadow:-28px 0 80px rgba(46,16,101,.18);transform:translateX(105%);transition:transform .24s cubic-bezier(.2,.8,.2,1);pointer-events:none;visibility:hidden}
.ayster-global-nav[open] .agn-drawer{transform:translateX(0);pointer-events:auto;visibility:visible}
.agn-drawer-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px;padding:0 2px 14px;border-bottom:1px solid rgba(0,0,0,.08)}
.agn-drawer-head strong{display:block;color:#23262b;font-size:18px;letter-spacing:.18em}.agn-drawer-head small{display:block;color:#6b7280;font-size:11px;margin-top:4px}
.agn-close{appearance:none!important;-webkit-appearance:none!important;width:42px!important;height:42px!important;min-width:42px!important;padding:0!important;margin:0!important;border-radius:12px!important;border:1px solid rgba(0,0,0,.12)!important;background:#f7f7f8!important;color:#23262b!important;font-size:26px!important;line-height:1!important;box-shadow:none!important}
.agn-drawer-scroll{height:calc(100dvh - 105px - env(safe-area-inset-top) - env(safe-area-inset-bottom));overflow:auto;padding:0 2px 10px}
.agn-section{margin:18px 0}.agn-section-title{padding:0 10px 7px;color:#6b7280;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.16em}
.agn-drawer-link{display:flex!important;align-items:center!important;justify-content:space-between!important;min-height:48px!important;padding:0 13px!important;margin:6px 0!important;border:1px solid rgba(0,0,0,.08)!important;border-radius:13px!important;background:#ffffff!important;color:#23262b!important;text-decoration:none!important;font-size:14px!important;font-weight:700!important;touch-action:manipulation!important}
.agn-drawer-link:active,.agn-drawer-link.active{background:#f5f1fe!important;border-color:rgba(124,58,237,.25)!important}.agn-drawer-link span{color:#9aa0a8;font-size:22px;font-weight:400}
.agn-ai-link{background:linear-gradient(135deg,#7c3aed,#7c3aed 55%,#6d28d9)!important;color:#ffffff!important}.agn-ai-link span{color:rgba(255,255,255,.75)!important}
.agn-signout{appearance:none!important;-webkit-appearance:none!important;width:100%!important;min-height:48px!important;margin:18px 0 0!important;border-radius:13px!important;border:1px solid rgba(124,58,237,.30)!important;background:rgba(124,58,237,.06)!important;color:#7c3aed!important;font-size:14px!important;font-weight:800!important;box-shadow:none!important}
.ayster-premium-nav,.ayster-shell,body>header{display:none!important}
@media(min-width:1121px){.agn-bar{height:68px}.agn-drawer{width:min(380px,34vw)}}.agn-mobile{display:grid!important}
  .agn-drawer{width:min(380px,34vw)}
}
