/* APEX 6.2 — true responsive layouts. Loaded last on purpose. */
:root{--content-max:1480px}
html{overflow-x:hidden}body{overflow-x:hidden}
.main-area{min-width:0}.screen{max-width:var(--content-max);margin:0 auto}
/* No more overlapping primary cards */
.weather-now-card{margin:18px 0 20px!important;z-index:2!important}
.command-dock{margin:0 0 20px!important;z-index:2!important}
.home-grid,.premium-quick,.showcase-grid,.local-hub-teasers,.android-beta-zone,.promo-ad-zone,.apex-install-zone,.launch-offer-strip{position:relative;z-index:1}
.launch-offer-strip{display:flex;align-items:center;justify-content:space-between;gap:22px;margin:18px 0;padding:16px 18px;border:1px solid rgba(94,209,255,.2);border-radius:22px;background:linear-gradient(110deg,rgba(18,75,83,.55),rgba(8,31,47,.82));box-shadow:0 18px 50px rgba(0,0,0,.2)}
.launch-offer-strip>div{display:grid;gap:3px}.launch-offer-strip span{font-size:9px;font-weight:950;letter-spacing:.16em;color:#64f1b2}.launch-offer-strip b{font-size:18px;color:#f1fbff}.launch-offer-strip small{color:#87a5b5;line-height:1.5}
.footer-seo-links a{color:#7796a8;text-decoration:none}.footer-seo-links a:hover{color:#6fe2ff}
/* Stable motion: functional cards never tilt */
.panel,.quick-card,.line-card,.cinematic-map-card,.weather-now-card,.command-dock{transform:none!important;will-change:auto!important}
/* Business registration / billing foundation */
.business-register-fields{display:grid;gap:14px;margin:10px 0 2px;padding:18px;border:1px solid rgba(88,201,255,.18);border-radius:20px;background:rgba(7,27,40,.65)}
.business-register-fields.hidden{display:none}.business-register-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start}.business-register-head h3{margin:0;font-size:22px}.business-register-head small{display:block;max-width:620px;color:#819dac;line-height:1.5}.free-badge{white-space:nowrap;padding:8px 10px;border-radius:999px;background:rgba(79,244,169,.1);border:1px solid rgba(79,244,169,.22);color:#75f5b3;font-size:10px;font-weight:900}.nip-row{display:grid;grid-template-columns:minmax(180px,1fr) auto;gap:10px;align-items:end}.nip-lookup-status{margin:0;color:#7e9bab;font-size:11px}.nip-lookup-status.ok{color:#68f2ad}.nip-lookup-status.error{color:#ff8da5}.portal-form-grid .wide{grid-column:1/-1}
/* Mobile menu */
.mobile-menu-sheet{display:none}
@media (max-width:1050px){
  .mobile-menu-sheet{display:grid;position:fixed;inset:0;z-index:120000;place-items:end center;opacity:0;visibility:hidden;transition:.2s}
  .mobile-menu-sheet.open{opacity:1;visibility:visible}.mobile-menu-backdrop{position:absolute;inset:0;border:0;background:rgba(1,8,14,.68);backdrop-filter:blur(10px)}
  .mobile-menu-panel{position:relative;width:min(680px,100%);max-height:min(82vh,760px);overflow:auto;padding:20px 16px calc(20px + env(safe-area-inset-bottom));border-radius:28px 28px 0 0;border:1px solid rgba(81,196,247,.22);border-bottom:0;background:linear-gradient(160deg,#0a2130,#06131d);box-shadow:0 -30px 100px rgba(0,0,0,.55);transform:translateY(24px);transition:.25s}
  .mobile-menu-sheet.open .mobile-menu-panel{transform:none}.mobile-menu-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:14px}.mobile-menu-head small{color:#62efb1;font-weight:900;letter-spacing:.14em}.mobile-menu-head h2{margin:3px 0 0;font-size:25px}.mobile-menu-head>button{width:42px;height:42px;border-radius:14px;border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.04);color:#fff;font-size:26px}
  .mobile-menu-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.mobile-menu-grid button{min-width:0;padding:15px;border-radius:18px;border:1px solid rgba(84,192,240,.14);background:rgba(8,29,43,.7);color:#fff;text-align:left;display:grid;grid-template-columns:36px 1fr;grid-template-rows:auto auto;gap:2px 8px}.mobile-menu-grid button>span{grid-row:1/3;width:34px;height:34px;border-radius:11px;display:grid;place-items:center;background:rgba(46,157,255,.12);color:#75dcff}.mobile-menu-grid b{font-size:13px}.mobile-menu-grid small{font-size:9px;color:#7190a2}.mobile-account-btn{width:100%;min-height:50px;margin-top:12px;border:0;border-radius:16px;background:linear-gradient(135deg,#238fff,#1468ec);color:#fff;font-weight:900}
  body.mobile-menu-open{overflow:hidden}
  .bottom-nav{grid-template-columns:repeat(5,1fr)!important}
  .command-fab{display:none!important}
}
/* TABLET: separate layout, no negative margins, no oversized hero */
@media (min-width:721px) and (max-width:1050px){
  .screen{padding:20px 22px 100px!important}.topbar{height:70px!important}.top-actions #shareBtn,.top-actions #fullscreenBtn,.top-actions #fxBtn{display:none}
  .cinematic-hero{min-height:500px!important;border-radius:28px}.hero-content{left:34px!important;right:34px;max-width:620px}.cinematic-hero h1{font-size:64px!important}.hero-hud,.apex-hero-orbit{display:none!important}
  .weather-now-card{grid-template-columns:64px 1fr!important}.weather-stats{grid-column:1/-1;justify-content:stretch}.weather-stats span{flex:1}
  .route-fields.compact{grid-template-columns:1fr 44px 1fr!important}.command-dock{padding:22px!important}
  .portal-grid,.home-grid,.showcase-grid,.android-beta-zone,.promo-ad-zone{grid-template-columns:1fr!important}
}
/* PHONE: designed for touch, not scaled desktop */
@media (max-width:720px){
  :root{--content-max:100%}body{background:#06111a}
  .topbar{height:62px!important;padding:0 12px!important;background:rgba(5,16,25,.94)!important}.mobile-brand .brand-mark{width:36px;height:36px}.mobile-brand strong{font-size:15px}.mobile-brand b{font-size:9px}
  .top-actions{gap:6px}.top-actions .icon-btn{width:38px;height:38px;border-radius:13px}.top-actions #commandBtn,.top-actions #shareBtn,.top-actions #fullscreenBtn,.top-actions #fxBtn,.top-actions #refreshBtn{display:none!important}
  .screen{padding:10px 10px 92px!important}
  .cinematic-hero{min-height:0!important;border-radius:22px!important;overflow:hidden;display:block!important}.hero-media{height:230px!important;bottom:auto!important;transform:none!important;background-position:center!important}.hero-video{display:none!important}.hero-grid,.hero-shimmer,.hero-aurora,.hero-route,.hero-hud,.apex-hero-orbit{display:none!important}.hero-content{position:relative!important;left:auto!important;right:auto!important;top:auto!important;transform:none!important;max-width:none!important;padding:195px 18px 20px!important;background:linear-gradient(180deg,transparent 0,rgba(3,14,22,.86) 185px,rgba(3,14,22,.98) 100%)}.hero-tag{display:none!important}.eyebrow{font-size:9px!important}.cinematic-hero h1{font-size:42px!important;line-height:.92!important;letter-spacing:-.055em!important}.hero-lead{font-size:13px!important;line-height:1.58!important;margin-top:14px!important;text-shadow:none!important}.hero-actions{display:grid!important;grid-template-columns:1fr!important;margin-top:16px!important;gap:8px!important}.hero-actions button{width:100%!important;min-height:48px!important}.hero-metrics{position:static!important;display:grid!important;grid-template-columns:repeat(3,1fr)!important;margin-top:16px!important;padding-top:14px!important;border-top:1px solid rgba(255,255,255,.08)!important;gap:4px!important}.hero-metrics div{width:auto!important;text-align:center!important}.hero-metrics b{font-size:18px!important}.hero-metrics span{font-size:8px!important}
  .launch-offer-strip{display:grid!important;grid-template-columns:1fr!important;margin:12px 0!important;padding:14px!important;border-radius:18px!important}.launch-offer-strip .secondary-btn{width:100%}.launch-offer-strip b{font-size:15px}.launch-offer-strip small{font-size:10px}
  .weather-now-card{display:grid!important;grid-template-columns:46px 1fr!important;gap:10px!important;margin:12px 0!important;padding:13px!important;border-radius:18px!important}.weather-icon{width:44px!important;height:44px!important;font-size:22px!important}.weather-now-card h2{font-size:18px!important}.weather-now-card p{font-size:10px}.weather-stats{grid-column:1/-1;display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:6px!important}.weather-stats span{min-width:0!important;padding:8px!important}.weather-stats small{font-size:7px!important}.weather-stats b{font-size:12px!important}
  .command-dock{display:block!important;margin:0 0 12px!important;padding:15px!important;border-radius:20px!important}.dock-title h2{font-size:25px!important}.dock-title p{font-size:11px!important}.route-fields.compact{display:grid!important;grid-template-columns:1fr!important;gap:8px!important}.route-fields.compact .swap-btn{width:100%!important;height:38px!important}.route-fields label{font-size:9px}.route-fields input,.route-fields select{min-height:48px!important}.home-action-row{display:grid!important;grid-template-columns:1fr!important;gap:8px!important}.home-action-row button{width:100%}
  .premium-grid,.premium-quick,.showcase-grid,.local-hub-teasers,.android-beta-zone,.promo-ad-zone,.apex-install-zone,.more-grid,.rules-grid,.marketplace-grid{grid-template-columns:1fr!important;gap:10px!important}.panel,.quick-card,.showcase-card,.hub-teaser,.promo-card,.android-beta-zone,.apex-install-zone{border-radius:20px!important}.panel{padding:15px!important}.premium-quick{margin:10px 0!important}.quick-card{min-height:74px;padding:12px!important}.quick-card>span{width:40px!important;height:40px!important}
  .showcase-card{min-height:300px!important}.showcase-app{min-height:340px!important}.showcase-copy{left:16px!important;right:16px!important;bottom:16px!important}.showcase-copy h2{font-size:28px!important}
  .android-beta-zone{padding:16px!important}.beta-copy h2{font-size:31px!important}.beta-steps{grid-template-columns:1fr!important}.beta-video-frame{min-height:230px!important}.beta-floating-btn{display:none!important}
  .apex-install-zone{min-height:0!important}.install-copy{padding:24px 18px 180px!important}.install-copy h2{font-size:34px!important}.install-actions{grid-template-columns:1fr!important}.install-orbit{transform:translateX(50%) scale(.8)!important}
  .page-hero{min-height:150px!important;padding:18px!important;border-radius:20px!important}.page-hero h1{font-size:33px!important}.page-hero p{font-size:11px;line-height:1.55}.page-hero .primary-btn{position:static!important;width:100%!important;margin-top:12px}.line-cards{grid-template-columns:repeat(5,1fr)!important;gap:5px!important}.line-card{min-width:0!important;padding:8px 4px!important}.line-card b{font-size:10px!important}.line-route-panel{padding:12px!important}.line-route-toolbar{grid-template-columns:1fr!important}.map-layout,.line-map-layout{grid-template-columns:1fr!important}.map{height:46vh!important;min-height:340px!important}.line-map{min-height:380px!important}.route-console,.live-console{max-height:none!important}.stop-sequence{max-height:440px!important}.stop-label{display:none!important}
  .mega-search{min-height:54px!important;padding:0 12px!important}.mega-search input{font-size:14px!important}.stops-layout{grid-template-columns:1fr!important}.stops-list{max-height:none!important}.sticky-detail{position:static!important}.planner-command .route-fields{display:grid!important;grid-template-columns:1fr!important}.planner-command .swap-btn{width:100%!important}.plan-card{padding:14px!important}.leg{grid-template-columns:56px 1fr!important}.plan-top{grid-template-columns:1fr!important}
  .hub-toolbar{grid-template-columns:1fr!important}.hub-tabs{display:flex!important;overflow-x:auto;flex-wrap:nowrap!important;padding-bottom:4px}.hub-tabs button{white-space:nowrap;flex:0 0 auto}.market-media{height:180px!important}.chat-messages{height:52vh!important}.chat-bubble{max-width:100%!important}.community-gallery{grid-template-columns:1fr!important}.timeline{padding-left:10px!important}.timeline-item{grid-template-columns:72px 1fr!important}.fleet-card{grid-template-columns:1fr!important}
  .site-footer{display:grid!important;gap:10px;padding:16px 16px 90px!important}.footer-seo-links{line-height:1.8!important}.footer-seo-links a{display:inline-block}
  .bottom-nav{left:8px!important;right:8px!important;bottom:max(6px,env(safe-area-inset-bottom))!important;height:62px!important;border-radius:20px!important}.bottom-nav .nav-item{padding:4px!important}.bottom-nav .nav-item span{font-size:17px!important}.bottom-nav .nav-item small{font-size:8px!important}
  .portal-modal{padding:8px!important;align-items:end!important}.portal-modal-panel{width:100%!important;max-height:88vh!important;border-radius:24px 24px 14px 14px!important;padding:20px 16px!important}.portal-form-grid,.form-grid{grid-template-columns:1fr!important}.portal-form-grid .wide{grid-column:auto!important}.business-register-head{display:grid!important}.nip-row{grid-template-columns:1fr!important}.nip-row button{width:100%}.portal-auth-tabs{position:sticky;top:0;z-index:2}.comments-panel,.market-submit-panel,.place-panel,.account-panel{max-width:none!important}
  .beta-popup,.tester-modal{padding:0!important;align-items:end!important}.beta-popup-card,.tester-panel{border-radius:24px 24px 0 0!important;max-height:92vh;overflow:auto}.beta-popup-side{display:none}.tester-side{padding:20px!important}.tester-form{padding:20px!important}
}
@media(max-width:390px){.cinematic-hero h1{font-size:37px!important}.hero-metrics span{font-size:7px!important}.mobile-menu-grid{grid-template-columns:1fr!important}.bottom-nav .nav-item small{font-size:7px!important}.screen{padding-left:8px!important;padding-right:8px!important}}
@media(prefers-reduced-motion:reduce){.hero-video{display:none!important}.launch-offer-strip,.mobile-menu-panel{transition:none!important}}
.market-promoted{position:absolute;right:14px;top:14px;padding:7px 10px;border-radius:999px;background:linear-gradient(135deg,#2ca0ff,#5bffc1);color:#04131d;font-size:9px;font-weight:950;letter-spacing:.12em;box-shadow:0 8px 24px rgba(46,185,255,.24)}.market-card.promoted{border-color:rgba(77,220,255,.36);box-shadow:0 28px 80px rgba(0,0,0,.28),0 0 38px rgba(42,183,255,.08)}.market-card.promoted .market-kind{top:48px}.business-profile-box{margin:18px 0;padding:18px;border:1px solid rgba(83,197,246,.15);border-radius:20px;background:rgba(7,26,38,.58)}
