/* Luna Terra system shell v2.65 — modern shared navigation and dashboard */
:root{
  --shell-bg:#070b0f;
  --shell-surface:#0c1217;
  --shell-surface-2:#111920;
  --shell-surface-3:#162129;
  --shell-line:#22313a;
  --shell-line-strong:#344852;
  --shell-text:#e7edf0;
  --shell-muted:#94a4ab;
  --shell-faint:#687981;
  --shell-accent:#49ddc4;
  --shell-accent-soft:rgba(73,221,196,.11);
  --shell-danger:#ef8f83;
  --shell-radius:10px;
}

html,body{background:var(--shell-bg)!important;color:var(--shell-text)!important;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important}
*{scrollbar-color:var(--shell-line-strong) var(--shell-bg)!important}
*::-webkit-scrollbar-track{border:0!important;background:var(--shell-bg)!important}
*::-webkit-scrollbar-thumb{border:2px solid var(--shell-bg)!important;border-radius:999px!important;background:var(--shell-line-strong)!important;box-shadow:none!important}

body>.shell{grid-template-columns:264px minmax(0,1fr)!important;background:var(--shell-bg)!important}
body>.shell>.sidebar{padding:18px 14px!important;border-right:1px solid var(--shell-line)!important;background:rgba(9,14,18,.98)!important}
.sidebar>.brand{display:grid!important;grid-template-columns:42px minmax(0,1fr)!important;gap:0 12px!important;align-items:center!important;margin:0 4px 22px!important;padding:0 2px!important;border:0!important;background:transparent!important}
.sidebar>.brand .brand-logo{grid-row:1/3;width:42px!important;height:42px!important;margin:0!important;filter:none!important}
.sidebar>.brand h1{align-self:end;margin:0!important;color:var(--shell-text)!important;font-size:17px!important;line-height:1.2!important;letter-spacing:.01em!important}
.sidebar>.brand p{align-self:start;margin:3px 0 0!important;color:var(--shell-faint)!important;font-size:9px!important;line-height:1.35!important;letter-spacing:.09em!important;text-transform:uppercase!important}

.sidebar>.section{margin:0 0 14px!important;padding:0 4px!important;border:0!important;background:transparent!important}
.sidebar>.section>h2{margin:0 8px 9px!important;color:var(--shell-faint)!important;font-size:10px!important;font-weight:800!important;letter-spacing:.14em!important;text-transform:uppercase!important}
.nav-btn{grid-template-columns:32px minmax(0,1fr)!important;gap:10px!important;margin:0 0 3px!important;padding:8px!important;border:1px solid transparent!important;border-radius:8px!important;background:transparent!important;color:var(--shell-muted)!important;box-shadow:none!important;transition:background .15s ease,border-color .15s ease,color .15s ease!important}
.nav-btn:hover{border-color:var(--shell-line)!important;background:var(--shell-surface)!important;color:var(--shell-text)!important}
.nav-btn.active{border-color:rgba(73,221,196,.28)!important;background:var(--shell-accent-soft)!important;color:var(--shell-text)!important;box-shadow:none!important}
.nav-btn .icon{width:32px!important;height:32px!important;border:1px solid var(--shell-line)!important;border-radius:7px!important;background:var(--shell-surface)!important;color:var(--shell-accent)!important;font:700 10px/1 Inter,ui-sans-serif,system-ui,sans-serif!important}
.nav-btn.active .icon{border-color:rgba(73,221,196,.38)!important;background:rgba(73,221,196,.08)!important}
.nav-title{color:inherit!important;font-size:13px!important;font-weight:680!important;line-height:1.25!important;letter-spacing:0!important;text-transform:none!important}
.nav-meta{margin-top:2px!important;color:var(--shell-faint)!important;font:400 10px/1.3 Inter,ui-sans-serif,system-ui,sans-serif!important}

.sidebar>.section:has(.mode-switch),.sidebar>.lt-online-data-section{margin-top:16px!important;padding:14px!important;border:1px solid var(--shell-line)!important;border-radius:var(--shell-radius)!important;background:var(--shell-surface)!important}
.sidebar>.section:has(.mode-switch)>h2,.sidebar>.lt-online-data-section>h2{margin-left:0!important}
.mode-switch{gap:6px!important}
.mode-btn,.btn{min-height:36px!important;padding:8px 12px!important;border:1px solid var(--shell-line)!important;border-radius:8px!important;background:var(--shell-surface-2)!important;color:var(--shell-muted)!important;font:700 12px/1.2 Inter,ui-sans-serif,system-ui,sans-serif!important;letter-spacing:0!important;text-transform:none!important;box-shadow:none!important}
.mode-btn:hover,.btn:hover{border-color:var(--shell-line-strong)!important;color:var(--shell-text)!important}
.mode-btn.active,.btn.dashboard-primary-action{border-color:rgba(73,221,196,.42)!important;background:var(--shell-accent-soft)!important;color:var(--shell-accent)!important;box-shadow:none!important}
#lockGmBtn{grid-column:1/-1}
.field-note{margin-top:8px!important;color:var(--shell-faint)!important;font:400 11px/1.45 Inter,ui-sans-serif,system-ui,sans-serif!important}
.lt-save-receipt{border-color:var(--shell-line)!important;border-radius:7px!important;background:rgba(7,11,15,.5)!important;color:var(--shell-faint)!important;font-family:Inter,ui-sans-serif,system-ui,sans-serif!important}

.content{background:var(--shell-bg)!important}
.content>.topbar{height:64px!important;padding:0 26px!important;border-bottom:1px solid var(--shell-line)!important;background:rgba(7,11,15,.9)!important;backdrop-filter:blur(18px)!important}
.shell-topbar-primary{display:flex;align-items:center;gap:13px;min-width:0}
.content>.topbar h2{color:var(--shell-text)!important;font-size:16px!important;font-weight:720!important;letter-spacing:0!important}
.content>.topbar p{margin-top:2px!important;color:var(--shell-faint)!important;font-size:11px!important;letter-spacing:0!important;text-transform:none!important}
.top-right{color:var(--shell-faint)!important;font-size:10px!important;line-height:1.35!important;letter-spacing:.08em!important}
.frame-wrap{top:64px!important;background:var(--shell-bg)!important}
.shell-menu-button{display:none;width:38px;height:38px;padding:9px;border:1px solid var(--shell-line);border-radius:8px;background:var(--shell-surface);cursor:pointer}
.shell-menu-button span{display:block;height:1px;margin:4px 0;background:var(--shell-muted)}

.home,.player-portal,.player-detail{padding:clamp(24px,4vw,56px)!important;background:radial-gradient(circle at 82% 0%,rgba(73,221,196,.07),transparent 31rem),var(--shell-bg)!important}
.home>.dashboard-hero{display:block!important;max-width:1280px!important;margin:0 0 34px!important;padding:0 0 30px!important;border:0!important;border-bottom:1px solid var(--shell-line)!important;background:transparent!important}
.dashboard-eyebrow{display:block;margin-bottom:10px;color:var(--shell-accent);font-size:11px;font-weight:800;letter-spacing:.15em;text-transform:uppercase}
.home>.dashboard-hero h1{margin:0!important;color:var(--shell-text)!important;font-size:clamp(40px,6vw,68px)!important;line-height:1!important;letter-spacing:-.045em!important;text-transform:none!important}
.home>.dashboard-hero>p{max-width:720px;margin:17px 0 0!important;color:#bcc9ce!important;font-size:17px!important;line-height:1.65!important;letter-spacing:0!important;text-transform:none!important}
.dashboard-hero-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:22px}
.home-grid{grid-template-columns:repeat(auto-fit,minmax(255px,1fr))!important;gap:14px!important;max-width:1280px!important}
.home-card{display:flex!important;flex-direction:column!important;min-height:190px!important;padding:24px!important;border:1px solid var(--shell-line)!important;border-radius:var(--shell-radius)!important;background:linear-gradient(155deg,rgba(17,25,32,.92),rgba(10,16,21,.97))!important;box-shadow:none!important}
.home-card:hover{border-color:var(--shell-line-strong)!important}
.home-card h3{margin:0 0 10px!important;color:var(--shell-text)!important;font-size:18px!important;line-height:1.3!important;letter-spacing:-.01em!important;text-transform:none!important}
.home-card p{margin:0 0 20px!important;color:var(--shell-muted)!important;font:400 14px/1.6 Inter,ui-sans-serif,system-ui,sans-serif!important}
.home-card>.btn{align-self:flex-start;margin-top:auto!important}
#playerViewIntroCard{grid-column:1/-1;min-height:142px!important;background:linear-gradient(135deg,rgba(73,221,196,.1),rgba(12,18,23,.96) 38%)!important}
#onlineBackendProofCard{grid-column:1/-1;min-height:150px!important}
#onlineBackendProofCard>.btn{margin-right:6px!important}

.player-head,.player-folder,.player-detail-card{border:1px solid var(--shell-line)!important;border-radius:var(--shell-radius)!important;background:var(--shell-surface)!important;box-shadow:none!important}
.player-head h1,.player-detail-card h1{color:var(--shell-text)!important;letter-spacing:-.025em!important;text-transform:none!important}
.player-head p,.player-detail-meta,.player-detail-body,.player-empty{color:var(--shell-muted)!important;font-family:Inter,ui-sans-serif,system-ui,sans-serif!important;letter-spacing:0!important;text-transform:none!important}
.player-card{border:1px solid var(--shell-line)!important;border-radius:8px!important;background:var(--shell-surface-2)!important;color:var(--shell-text)!important}
.player-card:hover{border-color:var(--shell-line-strong)!important;color:var(--shell-accent)!important}

.gm-lock-modal,.lt-confirm-modal{background:rgba(0,0,0,.72)!important;backdrop-filter:blur(7px)}
.gm-lock-card,.lt-confirm-card{border:1px solid var(--shell-line-strong)!important;border-radius:12px!important;background:var(--shell-surface)!important;box-shadow:0 24px 80px rgba(0,0,0,.5)!important;padding:24px!important}
.gm-lock-card h2,.lt-confirm-card h2{color:var(--shell-text)!important;font-size:22px!important;letter-spacing:-.02em!important;text-transform:none!important}
.gm-lock-card p,.lt-confirm-card p{color:var(--shell-muted)!important;font-family:Inter,ui-sans-serif,system-ui,sans-serif!important}
.gm-lock-card input{border:1px solid var(--shell-line)!important;border-radius:8px!important;background:#070b0f!important;color:var(--shell-text)!important}

.boot-screen{background:radial-gradient(circle at 76% 25%,rgba(73,221,196,.1),transparent 30rem),var(--shell-bg)!important;color:var(--shell-text)!important;font-family:Inter,ui-sans-serif,system-ui,sans-serif!important}
.boot-screen::before,.boot-screen::after{display:none!important}
.boot-panel{width:min(1120px,calc(100vw - 40px))!important;min-height:620px!important;grid-template-columns:minmax(0,1fr) 390px!important;gap:0!important;padding:0!important;overflow:hidden!important;border:1px solid var(--shell-line)!important;border-radius:16px!important;background:var(--shell-surface)!important;box-shadow:0 30px 100px rgba(0,0,0,.48)!important}
.boot-terminal{padding:48px!important;border:0!important;border-right:1px solid var(--shell-line)!important;background:#090e12!important;text-shadow:none!important}
.boot-title{margin-bottom:25px!important;color:var(--shell-accent)!important;font-size:12px!important;font-weight:800!important;letter-spacing:.15em!important}
.boot-lines{min-height:390px!important;color:var(--shell-muted)!important;font:500 13px/1.7 ui-monospace,SFMono-Regular,Consolas,monospace!important;letter-spacing:.03em!important;text-transform:none!important}
.boot-cursor{width:7px!important;height:15px!important;background:var(--shell-accent)!important;box-shadow:none!important}
.boot-side{padding:48px!important;background:linear-gradient(155deg,rgba(17,25,32,.96),rgba(10,16,21,.99))!important}
.boot-logo{width:150px!important;max-height:150px!important;filter:none!important}
.boot-product{color:var(--shell-text)!important;font-size:36px!important;font-weight:800!important;line-height:1!important;letter-spacing:-.035em!important;text-transform:none!important;text-shadow:none!important}
.boot-subtitle{color:var(--shell-muted)!important;font-size:12px!important;line-height:1.55!important;letter-spacing:.09em!important}
.boot-btn{min-height:42px!important;padding:10px 16px!important;border:1px solid rgba(73,221,196,.42)!important;border-radius:8px!important;background:var(--shell-accent-soft)!important;color:var(--shell-accent)!important;font:750 13px/1.2 Inter,ui-sans-serif,system-ui,sans-serif!important;letter-spacing:0!important;text-transform:none!important;box-shadow:none!important}
.boot-status{color:var(--shell-faint)!important;font-size:11px!important;letter-spacing:0!important;text-transform:none!important}

@media(max-width:980px){
  body>.shell{grid-template-columns:1fr!important}
  body>.shell>.sidebar{position:fixed!important;z-index:1000!important;inset:0 auto 0 0!important;width:min(320px,88vw)!important;transform:translateX(-102%);transition:transform .2s ease!important;box-shadow:20px 0 70px rgba(0,0,0,.48)!important}
  body.lt-shell-menu-open>.shell>.sidebar{transform:translateX(0)}
  body.lt-shell-menu-open::after{content:"";position:fixed;z-index:999;inset:0;background:rgba(0,0,0,.54);backdrop-filter:blur(3px)}
  .shell-menu-button{display:block}
  .home-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:720px){
  .content>.topbar{padding:0 12px!important}
  .top-right{display:none!important}
  .home,.player-portal,.player-detail{padding:24px 14px 40px!important}
  .home-grid{grid-template-columns:1fr!important}
  #playerViewIntroCard,#onlineBackendProofCard{grid-column:auto}
  .boot-panel{min-height:0!important;grid-template-columns:1fr!important}
  .boot-terminal{display:none!important}
  .boot-side{min-height:min(680px,calc(100vh - 28px));padding:34px 24px!important}
}
@media(prefers-reduced-motion:reduce){body>.shell>.sidebar{transition:none!important}}
