/* ATLAS visual refresh v0.4 — premium holographic aesthetic; functionality unchanged. */
:root{--card-border:#294854;--radius:17px;--teal:#b2f7ea;}
body{background:radial-gradient(ellipse at 83% -10%,rgba(21,72,100,.2),transparent 34%),#070e19;}
.workspace{background:radial-gradient(ellipse at 87% 8%,rgba(23,92,117,.10),transparent 40%);}
.sidebar{background:linear-gradient(180deg,#0a1724 0%,#08121f 65%,#08111c);border-right:1px solid #26414e;}
.brand-symbol{box-shadow:0 0 24px rgba(97,235,216,.15);}
.nav-item{border-radius:11px!important;transition:background .25s,color .25s,transform .25s;}
.nav-item:hover{transform:translateX(3px);}
.nav-item.active{background:linear-gradient(95deg,rgba(85,207,203,.2),rgba(36,112,152,.07))!important;}
.nav-icon{display:grid;place-items:center;}
.nav-icon .atlas-icon{width:19px;height:19px;stroke-width:1.5;}
.topbar{background:rgba(7,15,26,.91);backdrop-filter:blur(12px);border-bottom-color:#233a47;}
.hero{height:432px;border-radius:22px;isolation:isolate;overflow:hidden;background:
  radial-gradient(ellipse at 79% 50%,rgba(47,146,164,.22),transparent 44%),
  linear-gradient(113deg,#0a1728 4%,#112b3b 50%,#0b1b30 100%);border:1px solid #355d69;box-shadow:0 18px 70px rgba(0,0,0,.24),inset 0 1px 0 rgba(166,255,244,.09);}
.hero:before{content:"";position:absolute;z-index:0;inset:0;background:linear-gradient(90deg,rgba(5,14,26,.48) 0%,transparent 80%),repeating-linear-gradient(0deg,transparent 0 35px,rgba(111,225,237,.025) 36px),repeating-linear-gradient(90deg,transparent 0 35px,rgba(111,225,237,.025) 36px);pointer-events:none;}
.hero:after{content:"";position:absolute;inset:1px;border-radius:21px;border:1px solid rgba(196,255,243,.035);pointer-events:none;}
.hero-content{z-index:3;padding-top:60px;max-width:64%;}
.hero h1{letter-spacing:-3.2px;text-shadow:0 6px 30px rgba(0,0,0,.32);}
.hero h1 em{background:linear-gradient(90deg,#b8fff2,#7ed3ea);background-clip:text;-webkit-background-clip:text;color:transparent;}
.hero p{color:#bbd1da;max-width:480px;}
.hero-label{color:#bbe9e7;}
.hero-art{width:560px;height:500px;right:-8px;top:-32px;opacity:1!important;overflow:visible;}
.atlas-starmap{position:absolute;z-index:1;inset:0;display:block;width:100%;height:100%;filter:drop-shadow(0 0 17px rgba(63,224,229,.17));}
.hero-art .globe,.hero-art .orb-haze,.hero-art .orbit,.hero-art .orb-trace{display:none;}
.hero-art .orb-label{z-index:3;color:#9bbec8;font-size:9px;text-shadow:0 0 12px #04121a;}
.hero-art .label-top{top:73px;right:65px;}
.hero-art .label-bottom{bottom:82px;left:77px;}
.hero-corner{z-index:3;}
.button-primary,.tool-button,.compose-send{border-radius:11px;box-shadow:0 8px 34px rgba(111,245,233,.12);}
.button-ghost{border-radius:10px;}
.metrics-grid{gap:15px;margin-top:19px;}
.metric{border-radius:14px;background:linear-gradient(136deg,#102334,#0b1625);border-color:#273e4c;box-shadow:inset 0 1px 0 rgba(209,255,252,.04);}
.metric-icon{border-radius:12px;background:linear-gradient(145deg,rgba(104,229,211,.13),rgba(52,102,156,.10));width:46px;height:46px;}
.metric-icon .atlas-icon{width:22px;height:22px;}
.modules-grid{gap:16px;}
.module-card{border-radius:18px!important;padding:24px;min-height:224px;border:1px solid rgba(79,132,151,.40);background:radial-gradient(circle at 15% 5%,rgba(57,126,142,.10),transparent 55%),linear-gradient(150deg,#142837 2%,#0b1928 74%);box-shadow:inset 0 1px 0 rgba(169,255,249,.05),0 12px 32px rgba(0,0,0,.14);transition:transform .25s ease,border-color .25s ease,box-shadow .25s ease;}
.module-card:before{right:-54px;top:-63px;width:210px;height:210px;background:radial-gradient(circle,rgba(74,192,194,.12),transparent 68%);transition:transform .3s;}
.module-card:after{content:"";position:absolute;bottom:0;left:15%;right:15%;height:1px;background:linear-gradient(90deg,transparent,rgba(145,235,226,.22),transparent);}
.module-card:hover,.module-card:focus-visible{transform:translateY(-5px);border-color:#74b9b8;box-shadow:inset 0 1px 0 rgba(174,255,248,.12),0 19px 40px rgba(0,0,0,.26),0 0 25px rgba(64,193,184,.055);}
.module-card:hover:before{transform:scale(1.35);}
.module-icon{width:55px;height:55px;border-radius:16px!important;border:1px solid rgba(126,219,218,.40);color:#bbfff2;background:linear-gradient(135deg,rgba(66,172,176,.32),rgba(49,105,137,.10));box-shadow:inset 0 1px 0 rgba(227,255,251,.12),0 8px 27px rgba(39,169,169,.12);}
.module-card[data-module="trade"] .module-icon{color:#aaf6e6;}
.module-card[data-module="mining"] .module-icon{color:#f6c393;border-color:rgba(242,184,124,.37);background:linear-gradient(140deg,rgba(193,131,79,.23),rgba(67,87,118,.13));}
.module-card[data-module="ships"] .module-icon,.module-card[data-module="navigation"] .module-icon{color:#abd8ff;border-color:rgba(137,183,235,.35);background:linear-gradient(140deg,rgba(84,141,208,.22),rgba(55,86,142,.13));}
.module-card[data-module="recovery"] .module-icon,.module-card[data-module="concepts"] .module-icon{color:#e5befc;border-color:rgba(205,147,255,.31);background:linear-gradient(140deg,rgba(138,104,185,.21),rgba(62,77,119,.12));}
.module-card h3{font-size:17px;letter-spacing:-.4px;margin-top:24px;}
.module-card p{color:#a0b7c2;font-size:11.5px;}
.module-index{color:#7894a3;}
.module-action{color:#b5f0e9;}
.panel,.tool-box,.rail-card,.tool-side,.chat-panel{border-radius:17px;background-image:linear-gradient(150deg,rgba(21,45,61,.96),rgba(11,23,37,.98));border-color:#294553;}
.tool-box,.rail-card,.tool-side{box-shadow:inset 0 1px 0 rgba(211,255,252,.05);}
.mini-panel{border-radius:12px;}
.form-field input,.form-field select{border-radius:10px;}
.button-primary:focus-visible,.module-card:focus-visible,.nav-item:focus-visible{outline:2px solid #b0fbee;outline-offset:3px;}
@media(max-width:1330px){.hero-art{right:-120px}.hero-content{max-width:68%;}}
@media(max-width:1080px){.hero-art{right:-190px;opacity:.54!important}.hero-content{max-width:80%}.module-card{min-height:230px}}
@media(max-width:800px){.hero{height:420px}.hero-art{right:-245px;opacity:.33!important}.hero-content{max-width:100%}}
@media(max-width:580px){.hero{min-height:435px;height:auto;border-radius:16px}.hero:after{border-radius:15px}.hero-art{right:-335px;top:4px;opacity:.24!important}.hero-content{padding:39px 23px 48px}.hero h1{letter-spacing:-2px}.module-card{min-height:175px;padding:20px}.module-icon{width:49px;height:49px}}
@media(prefers-reduced-motion:reduce){.module-card:hover{transform:none}}

/* v0.4: the universe is a continuously animated galactic scene, not a still collage. */
.hero{position:relative;background:#06111d;border-color:#376170;}
.atlas-universe-backdrop{position:absolute;inset:-8%;z-index:0;pointer-events:none;
 background-image:linear-gradient(90deg,rgba(3,10,20,.71) 0%,rgba(4,13,23,.52) 38%,rgba(4,12,24,.17) 100%),url('./assets/atlas-universe.webp');
 background-size:cover;background-position:55% 52%;filter:saturate(1.04) brightness(.81);
 animation:atlas-galaxy-drift 45s ease-in-out infinite alternate;transform-origin:center;}
@keyframes atlas-galaxy-drift{from{transform:scale(1.02) translate(-1.1%,.3%)}to{transform:scale(1.11) translate(1.3%,-1.1%)}}
.hero:before{z-index:1;background:linear-gradient(90deg,rgba(3,10,22,.87) 0%,rgba(3,12,23,.74) 35%,rgba(3,12,23,.13) 71%,rgba(3,12,23,.04) 100%)}
.hero-content{position:relative;z-index:5}
.hero-art{position:absolute;z-index:2;top:0;right:0;width:min(67%,760px);height:100%;overflow:hidden}
.hero-art .orb-label{display:none!important}
.atlas-starmap{z-index:1;filter:drop-shadow(0 0 14px rgba(63,224,229,.13))}
.atlas-galaxy-legend{position:absolute;z-index:2;bottom:17px;right:19px;display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;column-gap:12px;row-gap:5px;
 padding:7px 10px;border:1px solid rgba(122,190,209,.25);border-radius:9px;background:rgba(4,14,27,.73);backdrop-filter:blur(6px);
 font:600 8px system-ui,sans-serif;letter-spacing:1px;color:#b3d6da}
.atlas-galaxy-legend span{display:inline-flex;align-items:center;gap:5px}
.atlas-galaxy-legend i{display:inline-block;width:7px;height:7px;border-radius:50%}
.atlas-galaxy-legend .legend-playable{background:#7cf4e2;box-shadow:0 0 9px #70e9d0}
.atlas-galaxy-legend .legend-planned{background:#748aa4}
.atlas-galaxy-legend small{font:500 8px system-ui,sans-serif;letter-spacing:.3px;color:#7397a6}
@media(max-width:1330px){.hero-art{right:-3%;width:72%}}
@media(max-width:1080px){.hero-art{right:-10%;width:84%;opacity:.75!important}.hero:before{background:linear-gradient(90deg,rgba(3,10,22,.90),rgba(3,12,23,.62) 64%,rgba(3,12,23,.1))}}
@media(max-width:800px){.hero-art{right:-33%;width:107%;opacity:.48!important}}
@media(max-width:580px){.hero-art{right:-83%;width:154%;opacity:.33!important}.atlas-galaxy-legend{display:none}.atlas-universe-backdrop{filter:saturate(.9) brightness(.54)}}
@media(prefers-reduced-motion:reduce){.atlas-universe-backdrop{animation:none;transform:none}}
