/* AXIS FX — responsive finishing layer. Loaded after the feature styles. */
:root { color-scheme: dark; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 95px; }
body { min-width: 0; }
.container { max-width: min(1180px, calc(100% - 44px)); }
img, svg, video { max-width: 100%; }
section, article, aside, .tp-panel, .pay-checkout, .ct-panel { min-width: 0; }
:is(.header, .axis3d-hero, .section, .footer) :is(h1,h2,h3,p,strong,small) { overflow-wrap: break-word; }
:where(button, a, input, select, textarea):focus-visible { outline: 2px solid #f5ce87; outline-offset: 3px; }
:where(button, .button, .axis3d-primary, .axis3d-secondary, .nav-link) { touch-action: manipulation; }
:where(input, select, textarea) { max-width: 100%; }
.ai-table-scroll, .ct-history-scroll, .ai-chart-top, .tp-calendar-widget, .terminal-nav { -webkit-overflow-scrolling: touch; }
.ai-table-scroll:focus-visible, .ct-history-scroll:focus-visible { outline: 2px solid #f2c780; outline-offset: -2px; }
/* Respect accessibility settings without compromising the normal 3D experience. */
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { scroll-behavior: auto !important; } }
/* Laptop and tablet landscape */
@media (max-width: 1200px) {
  .container { max-width: calc(100% - 40px); }
  .tp-heading { gap: 16px; }
  .tp-heading h2, .section-head h2 { overflow-wrap: anywhere; }
  .tp-metric { padding: 18px 16px; }
  .tp-status { white-space: normal; max-width: 100%; line-height: 1.4; }
}
@media (max-width: 1130px) {
  .header { z-index: 250; }
  .site-nav { box-sizing: border-box; max-height: min(76dvh, calc(100dvh - 75px)); overscroll-behavior: contain; }
  .site-nav .nav-link { min-height: 43px; display: flex; align-items: center; }
  .site-nav .account-nav-btn, .site-nav .nav-contact { min-height: 46px; }
  .menu-toggle, .account-quick-btn { flex-shrink: 0; }
}
/* Medium tablets: one-column tools, two-column cards, easy-to-read typography */
@media (max-width: 850px) {
  .container { width: calc(100% - 36px); max-width: none; }
  .tp-heading { display: block; }
  .tp-heading > .tp-status, .tp-calendar-link { display: inline-flex; margin-top: 15px; max-width: 100%; }
  .tp-heading h2 { font-size: clamp(34px, 5.5vw, 54px); }
  .tp-signals-grid, .tp-lot-layout { grid-template-columns: minmax(0,1fr); }
  .tp-symbol-tabs { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .gaza-layout { grid-template-columns: minmax(0,1fr); }
  .gaza-card { max-width: 100%; }
  .axis3d-launch-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .pay-layout { min-width: 0; }
  .ai-canvas-shell, .ai-viewport, .ct-results { min-width: 0; }
  .tp-calendar-widget { height: min(580px, 68vh); min-height: 380px; }
}
/* Smartphones */
@media (max-width: 600px) {
  html { scroll-padding-top: 82px; }
  .container { width: calc(100% - 32px); max-width: none; }
  .micro-inner { gap: 5px; }
  .micro-left { max-width: 58%; line-height: 1.4; }
  .header-inner { gap: 4px; }
  .brand { min-width: 0; }
  .brand-logo { flex-shrink: 0; }
  .brand-type { min-width: 0; }
  .brand-type b { white-space: nowrap; }
  .account-quick-btn { width: 42px; height: 42px; margin-left: auto; margin-right: 6px; }
  .menu-toggle { width: 42px; height: 42px; padding: 12px 10px; }
  .site-nav { padding: 10px 16px 20px; max-height: calc(100dvh - 70px); }
  .axis3d-hero h1 { max-width: 100%; }
  .axis3d-hero-cta { width: 100%; display: grid; grid-template-columns: 1fr; }
  .axis3d-hero-cta > * { width: 100%; display: flex; justify-content: space-between; min-height: 48px; }
  .axis3d-hero-note { flex-wrap: wrap; line-height: 1.6; }
  .axis3d-scene-holder { min-width: 0; }
  .axis3d-controller { margin-inline: 0; width: 100%; }
  .axis3d-selector { width: 100%; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
  .axis3d-select { min-width: 0; min-height: 42px; font-size: 10px; }
  .axis3d-live-link { width: 100%; padding: 10px 4px; display: block; text-align: center; }
  .axis3d-hero-foot { flex-wrap: wrap; align-items: start; line-height: 1.7; }
  .axis3d-motion { min-height: 38px; }
  .axis3d-launch-head { gap: 10px; }
  .axis3d-launch-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .axis3d-launch-card { padding: 16px 13px; min-width: 0; }
  .tp-section { padding-block: 56px; }
  .tp-heading h2 { font-size: clamp(31px, 8.9vw, 48px); }
  .tp-heading .tp-status { box-sizing: border-box; display: flex; align-items: center; width: fit-content; max-width: 100%; white-space: normal; line-height: 1.45; font-size: 9px; letter-spacing: .45px; padding: 10px 12px; }
  .tp-metric { min-width: 0; }
  .tp-shortcuts { gap: 6px; }
  .tp-shortcuts a { min-height: 44px; display: inline-flex; align-items: center; }
  .tp-panel { padding: 16px; }
  .tp-panel-top { flex-wrap: wrap; }
  .tp-symbol { min-height: 42px; padding-inline: 3px; }
  .tp-entry-status strong { font-size: clamp(17px, 5.3vw, 23px); }
  .tp-risk-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .tp-risk-grid b { overflow-wrap: anywhere; }
  .tp-main-result strong { font-size: clamp(38px,10vw,68px); overflow-wrap: anywhere; }
  .tp-fields label input, .tp-fields label select, .tp-modal-panel input { min-height: 45px; font-size: 16px; }
  .tp-modal-panel { width: 100%; max-height: calc(100dvh - 24px); padding-bottom: max(22px, env(safe-area-inset-bottom)); }
  .ai-mini-ticker { gap: 6px; }
  .ai-chart-tools { flex-wrap: wrap; }
  .gaza-actions { gap: 9px; }
  .gaza-actions .button { min-height: 46px; }
  .gaza-points { grid-template-columns: 1fr; }
  .pay-checkout { min-width: 0; }
  .footer-bottom { gap: 10px; }
  .whatsapp-float { right: max(13px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); }
  /* Histories are long data tables: horizontal scroll instead of tiny columns. */
  .ai-table-scroll, .ct-history-scroll { overflow-x: auto; max-width: 100%; }
  .ai-trade-table, .ct-table { min-width: 540px; }
}
/* Very narrow Android/iPhone SE-sized viewports (320px) */
@media (max-width: 375px) {
  .container { width: calc(100% - 28px); }
  .micro-inner { font-size: 7px; }
  .micro-right { font-size: 8px; }
  .brand-type b { font-size: 19px; }
  .brand-type small { font-size: 6px; letter-spacing: 2px; }
  .brand-logo { width: 39px; height: 39px; }
  .header-inner { min-width: 0; }
  .account-quick-btn { width: 39px; height: 41px; }
  .menu-toggle { width: 39px; height: 41px; }
  .axis3d-pill { max-width: 100%; white-space: normal; }
  .axis3d-hero h1 { font-size: clamp(36px, 11.5vw, 44px); }
  .axis3d-controller { padding: 6px; }
  .axis3d-select { font-size: 9px; padding: 9px 3px; }
  .axis3d-launch-grid { grid-template-columns: 1fr; }
  .axis3d-launch-card { min-height: 120px; }
  .axis3d-scene { height: 340px; }
  .axis3d-coin { width: 92px; height: 92px; }
  .axis3d-float-one { top: 4%; }
  .axis3d-float-card { padding: 6px; }
  .tp-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
  .tp-metric { padding: 12px 9px; min-height: 134px; }
  .tp-metric strong { font-size: 13px; }
  .tp-metric span { font-size: 8px; }
  .tp-symbol-tabs { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .tp-entry-levels { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .tp-risk-grid { grid-template-columns: 1fr; }
  .tp-heading > .tp-status { max-width: 100%; }
  .tp-calendar-shell { padding: 7px; }
  .tp-calendar-widget { height: 440px; }
  .tp-modal-panel { padding-inline: 14px; }
  .tp-modal-brand { max-width: 100%; }
  .ai-mini-ticker { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .gaza-card { padding: 18px 14px; }
}
/* Short landscape phones: prioritize reachable navigation and login. */
@media (max-height: 500px) and (orientation: landscape) {
  .site-nav { max-height: calc(100dvh - 58px); overflow-y: auto; }
  .tp-modal-panel { max-height: calc(100dvh - 12px); }
  .axis3d-hero-inner { min-height: 0; }
}
/* Keep the expanded navigation polished at desktop sizes, instead of wrapping labels. */
@media (min-width: 1261px) {
  .container { max-width: min(1340px, calc(100% - 56px)); }
  .site-nav { gap: clamp(7px, .85vw, 16px); }
  .site-nav .nav-link { white-space: nowrap; font-size: 10px; }
  .site-nav .account-nav-btn { padding: 11px 10px; font-size: 9px; }
  .site-nav .nav-contact { padding: 11px 12px; font-size: 9px; gap: 9px; letter-spacing: .65px; white-space: nowrap; }
}
/* Full navigation cannot fit on compact laptop screens; use the existing mobile drawer. */
@media (min-width: 1131px) and (max-width: 1260px) {
  .site-nav { display:none;position:absolute;top:100%;left:0;right:0;padding:14px 18px 22px;background:#111718;flex-direction:column;gap:0;align-items:stretch;border-bottom:1px solid rgba(220,184,121,.3);box-shadow:0 35px 50px rgba(0,0,0,.3);max-height:min(76dvh,calc(100dvh - 75px));overflow:auto; }
  .site-nav.open { display:flex; }
  .site-nav .nav-link { min-height:43px;display:flex;align-items:center;font-size:14px;padding:12px 5px;border-bottom:1px solid var(--line); }
  .site-nav .nav-contact { margin-top:15px;justify-content:space-between;padding:14px; }
  .site-nav .account-nav-btn { margin-top:15px;padding:15px; }
  .menu-toggle { display:flex; }
  .account-quick-btn { display:inline-flex;align-items:center;justify-content:center;margin-left:auto;margin-right:12px; }
}
