/* ALEAORA Velvet Ruby-Obsidian & Burnished Rose-Gold 1-DNA Auth (Archetype A5 — Banner-Hero Minimal), Ribbon, Dialogs, 19-Bank Footer & In-Place 4-Theme 3D Bottom Nav */

main#main,
section.account-shell,
#aleaora-member,
footer.site-footer {
  overflow-anchor: none;
}

.support-contact,
#support-window {
  display: none !important;
}

html[data-newca-route] section.account-shell,
html[data-newca-route] section.member-layout {
  display: block !important;
  max-width: 1120px;
  width: 100%;
  margin: 0 auto 1.25rem;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html[data-newca-route="login"] .member-wrap,
html[data-newca-route="register"] .member-wrap {
  max-width: 500px !important;
  margin-inline: auto !important;
  padding: 12px 12px 28px !important;
}

html[data-newca-route="login"] section.account-shell,
html[data-newca-route="register"] section.account-shell,
html[data-newca-route="login"] section.member-layout,
html[data-newca-route="register"] section.member-layout {
  max-width: 500px;
}

html[data-newca-route="login"] .member-back,
html[data-newca-route="register"] .member-back,
html[data-newca-route] .breadcrumbs {
  display: none !important;
}

[hidden] {
  display: none !important;
}

/* Member Status Ribbon */
.ao-member-ribbon {
  box-sizing: border-box;
  width: 100%;
  margin: 0 0 0.85rem;
  padding: 0.72rem 0.95rem;
  border: 1.65px solid rgba(222,223,223, 0.42);
  border-radius: 12px;
  background: linear-gradient(150deg, #2b3640 0%, #1a2025 70%, #252f37 100%);
  color: #f5f6fb;
  font-family: "Noto Sans Thai", "Leelawadee UI", Tahoma, system-ui, sans-serif;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.48);
}

.ao-member-ribbon-id {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.ao-member-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.26rem 0.68rem;
  border-radius: 999px;
  border: 1.65px solid rgba(222,223,223, 0.48);
  background: rgba(205,39,45, 0.36);
  color: #f5f6fb;
  font-weight: 700;
  font-size: 0.84rem;
}

.ao-member-bal {
  font-size: 1.15rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #dedfdf;
}

.ao-member-ribbon-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
}

.ao-ribbon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0.34rem 0.72rem;
  border-radius: 8px;
  border: 1.65px solid rgba(222,223,223, 0.28);
  background: rgba(255, 255, 255, 0.04);
  color: #f5f6fb;
  font: 600 0.83rem/1 "Noto Sans Thai", "Leelawadee UI", Tahoma, system-ui, sans-serif;
  text-decoration: none;
  cursor: pointer;
}

.ao-ribbon-btn.is-primary {
  border-color: #f5f6fb;
  background: linear-gradient(180deg, #f5f6fb 0%, #dedfdf 60%, #8b9290 100%);
  color: #1a2025;
  font-weight: 800;
}

.ao-ribbon-btn.is-secondary {
  border-color: rgba(222,223,223, 0.52);
  background: linear-gradient(160deg, #cd272d, #8d1e2e);
  color: #f5f6fb;
}

/* Shared Buttons & Status Banners */
.ao-account-submit,
.ao-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 46px;
  padding: 0.65rem 1.15rem;
  border-radius: 10px;
  border: 1.65px solid rgba(222,223,223, 0.38);
  background: linear-gradient(160deg, #2b3640, #1a2025);
  color: #f5f6fb;
  font: 700 0.95rem/1.2 "Noto Sans Thai", "Leelawadee UI", Tahoma, system-ui, sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.09s ease, filter 0.14s ease;
}

.ao-account-submit,
.ao-btn.is-primary {
  border-color: #f5f6fb;
  background: linear-gradient(180deg, #f5f6fb 0%, #dedfdf 56%, #8b9290 100%);
  color: #1a2025;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68), 0 4px 0 #8d1e2e, 0 10px 22px rgba(0, 0, 0, 0.48);
}

.ao-btn.is-outline {
  border-color: rgba(222,223,223, 0.44);
  background: rgba(205,39,45, 0.2);
  color: #f5f6fb;
}

.ao-btn.is-danger {
  border-color: #f87171;
  background: linear-gradient(180deg, #dc2626, #991b1b);
  color: #ffffff;
}

.ao-btn:disabled,
.ao-account-submit:disabled {
  opacity: 0.52;
  cursor: not-allowed;
}

.ao-status-banner {
  margin: 0;
  padding: 0.68rem 0.9rem;
  border-radius: 10px;
  border: 1.65px solid rgba(222,223,223, 0.32);
  background: rgba(37,47,55, 0.9);
  color: #f5f6fb;
  font-size: 0.88rem;
  line-height: 1.45;
}

.ao-status-banner:empty { display: none; }
.ao-status-banner.is-error { border-color: #f87171; background: rgba(127, 29, 29, 0.45); color: #fecaca; }
.ao-status-banner.is-success { border-color: #4ade80; background: rgba(20, 83, 45, 0.48); color: #dcfce7; }

/* Archetype A5 — Banner-Hero Minimal (ALEAORA Velvet Ruby-Obsidian & Burnished Rose-Gold) */
.ao-a5-shell {
  width: 100%;
  margin: 0.35rem auto 1.25rem;
  border-radius: 18px;
  border: 1.65px solid rgba(222,223,223, 0.44);
  background: linear-gradient(175deg, #252f37 0%, #1a2025 62%, #1a2025 100%);
  color: #f5f6fb;
  overflow: hidden;
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.68);
}

.ao-a5-hero {
  position: relative;
  padding: 0.9rem 1.15rem 1.3rem;
  background:
    radial-gradient(ellipse 85% 68% at 50% 0%, rgba(205,39,45, 0.52) 0%, rgba(37,47,55, 0.88) 62%, #1a2025 100%);
  border-bottom: 1.65px solid rgba(222,223,223, 0.32);
  display: grid;
  gap: 0.8rem;
}

.ao-a5-util {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.ao-a5-back {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.25rem 0.72rem;
  border-radius: 999px;
  border: 1.65px solid rgba(222,223,223, 0.38);
  background: rgba(26,32,37, 0.56);
  color: #f5f6fb;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.ao-a5-line {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  min-height: 34px;
  padding: 0.25rem 0.72rem;
  border-radius: 999px;
  background: #06c755;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}

.ao-a5-line svg { width: 17px; height: 17px; }

.ao-a5-crest-wrap {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 0.42rem;
}

.ao-a5-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ao-a5-logo {
  height: 44px;
  width: auto;
  max-width: 196px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.72));
}

.ao-a5-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.78rem;
  border-radius: 999px;
  border: 1.65px solid rgba(222,223,223, 0.46);
  background: rgba(205,39,45, 0.34);
  color: #f5f6fb;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.ao-a5-crest-wrap h1 {
  margin: 0.15rem 0 0;
  font: 800 clamp(1.18rem, 3.8vw, 1.44rem)/1.25 "Noto Sans Thai", "Leelawadee UI", Tahoma, system-ui, sans-serif;
  color: #f5f6fb;
}

.ao-a5-sub {
  margin: 0;
  max-width: 38ch;
  font-size: 0.84rem;
  line-height: 1.45;
  color: #cbd6df;
}

.ao-a5-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #1a2025;
  border-bottom: 1.65px solid rgba(222,223,223, 0.22);
}

.ao-a5-tabs a {
  display: grid;
  place-items: center;
  min-height: 46px;
  font: 700 0.94rem/1 "Noto Sans Thai", "Leelawadee UI", Tahoma, system-ui, sans-serif;
  color: #cbd6df;
  text-decoration: none;
  border-bottom: 2.5px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.ao-a5-tabs a[aria-current="page"] {
  color: #f5f6fb;
  border-bottom-color: #dedfdf;
  background: rgba(205,39,45, 0.22);
}

.ao-a5-body {
  padding: 1.25rem 1.2rem 1.35rem;
  display: grid;
  gap: 0.95rem;
}

.ao-account-form,
.ao-a5-form {
  display: grid;
  gap: 0.9rem;
}

.ao-a5-divider {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.2rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #dedfdf;
  letter-spacing: 0.03em;
}

.ao-a5-divider::after {
  content: '';
  flex: 1;
  height: 1.65px;
  background: linear-gradient(90deg, rgba(222,223,223, 0.36), transparent);
}

.ao-account-field {
  display: grid;
  gap: 0.34rem;
}

.ao-account-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #f5f6fb;
}

/* A5 Signature: Borderless Minimal Filled Inputs with 1.65px Rose-Gold Focus Ring */
.ao-account-field input,
.ao-account-field select {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  padding: 0.62rem 0.92rem;
  border-radius: 11px;
  border: 1.65px solid transparent;
  background: #252f37;
  color: #f5f6fb;
  font: 16px/1.3 "Noto Sans Thai", "Leelawadee UI", Tahoma, system-ui, sans-serif;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.45);
  transition: border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.ao-account-field input::placeholder {
  color: #cbd6df;
}

.ao-account-field input:focus,
.ao-account-field select:focus {
  outline: none;
  border-color: #dedfdf;
  background: #1e272f;
  box-shadow: 0 0 0 3px rgba(222,223,223, 0.18);
}

.ao-field-hint {
  margin: 0;
  font-size: 0.79rem;
  color: #dedfdf;
}

.ao-a5-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.ao-a5-counter {
  font-size: 0.75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  padding: 0.14rem 0.54rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd6df;
}

.ao-a5-counter.is-complete {
  background: rgba(22, 163, 74, 0.34);
  color: #86efac;
}

.ao-a5-phone-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.ao-a5-phone-ic {
  position: absolute;
  left: 0.78rem;
  display: grid;
  place-items: center;
  color: #dedfdf;
  pointer-events: none;
}

.ao-a5-phone-wrap input { padding-left: 2.5rem !important; }

.ao-pw-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.ao-pw-wrap input { padding-right: 2.85rem !important; }

.ao-pw-toggle {
  position: absolute;
  right: 0.3rem;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #dedfdf;
  cursor: pointer;
}

.ao-a5-bank-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.ao-a5-bank-icon {
  display: block;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 10px;
  border: 1.65px solid rgba(222,223,223, 0.48);
  background: #ffffff;
  padding: 3px;
  object-fit: contain;
}

.ao-a5-bank-row select { flex: 1 1 auto; min-width: 0; }

.ao-a5-optional {
  border-radius: 11px;
  border: 1.65px dashed rgba(222,223,223, 0.28);
  background: rgba(26,32,37, 0.52);
  padding: 0.65rem 0.85rem;
}

.ao-a5-optional summary {
  cursor: pointer;
  font-size: 0.83rem;
  font-weight: 700;
  color: #cbd6df;
}

.ao-a5-opt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-top: 0.72rem;
}

.ao-a5-submit { width: 100%; min-height: 50px; font-size: 1rem; margin-top: 0.15rem; }
.ao-a5-outline-cta { width: 100%; min-height: 46px; }

.ao-a5-trust {
  list-style: none;
  margin: 0.1rem 0 0;
  padding: 0.65rem 0 0;
  border-top: 1.65px solid rgba(222,223,223, 0.2);
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 0.3rem;
}

.ao-a5-trust li {
  padding: 0.24rem 0.5rem;
  border-radius: 999px;
  background: rgba(205,39,45, 0.24);
  border: 1.5px solid rgba(222,223,223, 0.3);
  color: #f5f6fb;
  font-size: clamp(0.65rem, 2.5vw, 0.74rem);
  font-weight: 600;
  white-space: nowrap;
}

.ao-account-switch { margin: 0; text-align: center; font-size: 0.88rem; color: #cbd6df; }
.ao-account-switch a { color: #dedfdf; font-weight: 700; text-decoration: underline; }

.ao-captcha-box { display: grid; gap: 0.55rem; padding: 0.78rem; border: 1.65px solid rgba(222,223,223, 0.36); border-radius: 11px; background: rgba(26,32,37, 0.68); }
.ao-captcha-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }

/* Dialogs */
.ao-dialog {
  width: min(94vw, 480px);
  max-height: 88dvh;
  padding: 0;
  border: 1.65px solid rgba(222,223,223, 0.42);
  border-radius: 16px;
  background: linear-gradient(165deg, #252f37 0%, #161c21 100%);
  color: #f5f6fb;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.82), 0 0 28px rgba(205, 39, 45, 0.18), inset 0 1px 0 rgba(245, 246, 251, 0.16);
}

.ao-dialog::backdrop { background: rgba(11, 15, 19, 0.82); backdrop-filter: blur(5px); }
.ao-dialog-scroll { display: grid; gap: 0.8rem; padding: 1.15rem; overflow-y: auto; max-height: 86dvh; }
.ao-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.ao-dialog-pill { display: inline-flex; padding: 0.24rem 0.72rem; border-radius: 999px; background: linear-gradient(135deg, rgba(205, 39, 45, 0.85), rgba(141, 30, 46, 0.92)); border: 1.5px solid rgba(245, 246, 251, 0.46); color: #ffffff; font-size: 0.78rem; font-weight: 700; }
.ao-dialog-pill.is-warn { background: rgba(185, 28, 28, 0.6); border-color: #f87171; color: #fee2e2; }
.ao-dialog-close { width: 34px; height: 34px; border-radius: 50%; border: 1.65px solid rgba(222,223,223, 0.38); background: rgba(255, 255, 255, 0.06); color: #f5f6fb; cursor: pointer; }
.ao-dialog-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: flex-end; margin-top: 0.25rem; }

/* Floating Dock (Minigame FAB + LINE Float above Chat FAB) */
.ao-minigame-fab {
  position: fixed;
  right: 12px;
  bottom: 138px;
  z-index: 9050;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.65px solid #dedfdf;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #1a2025;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.48), 0 10px 24px rgba(0, 0, 0, 0.58);
}

.ao-minigame-fab img { width: 100%; height: 100%; object-fit: cover; }

.ao-line-float {
  position: fixed;
  right: 12px;
  bottom: 80px;
  z-index: 9080;
  display: grid;
  justify-items: end;
  gap: 0.5rem;
}

.ao-line-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.65px solid #86efac;
  background: linear-gradient(180deg, #06c755, #059b42);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.42), 0 10px 22px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.ao-line-popover {
  padding: 0.85rem;
  border-radius: 14px;
  border: 1.65px solid rgba(222,223,223, 0.48);
  background: #1a2025;
  display: grid;
  gap: 0.55rem;
  justify-items: center;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.72);
}

.ao-line-popover img { width: 168px; height: 168px; border-radius: 10px; background: #ffffff; padding: 6px; }

@media (max-width: 900px) {
  .ao-minigame-fab { bottom: calc(206px + env(safe-area-inset-bottom, 0px)); }
  .ao-line-float { bottom: calc(146px + env(safe-area-inset-bottom, 0px)); }
}

/* 19 Thai Bank Icons Strip in Footer */
.ao-bank-strip {
  width: 100%;
  margin: 0.9rem 0 0.65rem;
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  border: 1.65px solid rgba(222,223,223, 0.28);
  background: rgba(26,32,37, 0.78);
  display: grid;
  gap: 0.65rem;
}

.ao-bank-strip-title {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: #dedfdf;
  text-align: center;
}

.ao-footer-bank-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ao-footer-bank-list li {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: #ffffff;
  padding: 3px;
  border: 1.65px solid rgba(222,223,223, 0.44);
  display: grid;
  place-items: center;
}

.ao-footer-bank-list img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 440px) {
  .ao-a5-hero { padding: 0.8rem 0.85rem 1.05rem; }
  .ao-a5-body { padding: 1rem 0.9rem 1.15rem; }
  .ao-a5-opt-grid { grid-template-columns: 1fr; }
}

/* =====================================================================
   ALEAORA F015 SPLIT-WINGS MACHINED PEWTER-SCARLET MOBILE DOCK
   Zero-Left-Shift 5-Column CSS Grid + I04 Frosted Glass Emblems
   Split-Wings polygon lives strictly on ::before so elevated octagon is NEVER clipped
   ===================================================================== */
@media (min-width: 901px) {
  nav.bottom-nav,
  nav.mobile-nav,
  nav.ao-mobile-dock {
    display: none !important;
  }
}

@media (max-width: 900px) {
  body {
    padding-bottom: calc(116px + env(safe-area-inset-bottom, 0px)) !important;
  }

  nav.bottom-nav.ao-dock-f015,
  nav.mobile-nav.ao-dock-f015,
  nav.ao-mobile-dock.ao-dock-f015 {
    position: fixed !important;
    left: 50% !important;
    right: auto !important;
    bottom: max(10px, env(safe-area-inset-bottom, 0px)) !important;
    width: min(calc(100% - 20px), 540px) !important;
    transform: translateX(-50%) !important;
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    align-items: end !important;
    justify-items: stretch !important;
    gap: 2px !important;
    padding: 8px 8px 9px !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
    isolation: isolate;
    box-sizing: border-box !important;
    z-index: 9050 !important;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.78)) drop-shadow(0 0 14px rgba(205, 39, 45, 0.24));
  }

  nav.bottom-nav.ao-dock-f015::before,
  nav.mobile-nav.ao-dock-f015::before,
  nav.ao-mobile-dock.ao-dock-f015::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
      linear-gradient(180deg, rgba(247, 248, 248, 0.22) 0%, rgba(247, 248, 248, 0) 24%),
      linear-gradient(180deg, rgba(48, 59, 68, 0.97) 0%, rgba(21, 27, 32, 0.99) 100%);
    border: 1px solid rgba(222, 223, 223, 0.36);
    clip-path: polygon(
      0 14px, 14px 0,
      39% 0, 44% 11px, 56% 11px, 61% 0,
      calc(100% - 14px) 0, 100% 14px,
      100% calc(100% - 14px), calc(100% - 14px) 100%,
      14px 100%, 0 calc(100% - 14px)
    );
  }

  nav.bottom-nav.ao-dock-f015 > a,
  nav.mobile-nav.ao-dock-f015 > a,
  nav.ao-mobile-dock.ao-dock-f015 > a {
    position: relative;
    z-index: 2;
    min-width: 0 !important;
    width: 100% !important;
    min-height: 52px;
    padding: 2px 2px 1px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 3px !important;
    text-align: center !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #d6dde2;
    box-sizing: border-box !important;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.16s ease, transform 0.1s ease;
  }

  nav.bottom-nav.ao-dock-f015 > a:nth-child(1),
  nav.mobile-nav.ao-dock-f015 > a:nth-child(1),
  nav.ao-mobile-dock.ao-dock-f015 > a:nth-child(1) { grid-column: 1; }
  nav.bottom-nav.ao-dock-f015 > a:nth-child(2),
  nav.mobile-nav.ao-dock-f015 > a:nth-child(2),
  nav.ao-mobile-dock.ao-dock-f015 > a:nth-child(2) { grid-column: 2; }
  nav.bottom-nav.ao-dock-f015 > a:nth-child(3),
  nav.mobile-nav.ao-dock-f015 > a:nth-child(3),
  nav.ao-mobile-dock.ao-dock-f015 > a:nth-child(3) { grid-column: 3; z-index: 4; overflow: visible !important; }
  nav.bottom-nav.ao-dock-f015 > a:nth-child(4),
  nav.mobile-nav.ao-dock-f015 > a:nth-child(4),
  nav.ao-mobile-dock.ao-dock-f015 > a:nth-child(4) { grid-column: 4; }
  nav.bottom-nav.ao-dock-f015 > a:nth-child(5),
  nav.mobile-nav.ao-dock-f015 > a:nth-child(5),
  nav.ao-mobile-dock.ao-dock-f015 > a:nth-child(5) { grid-column: 5; }

  nav.bottom-nav.ao-dock-f015 > a:active,
  nav.ao-mobile-dock.ao-dock-f015 > a:active {
    transform: translateY(1px) scale(0.96);
  }

  .ao-i04-emblem {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    border: 1px solid rgba(222, 223, 223, 0.22);
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.1), rgba(26, 32, 37, 0.65));
    color: #dedfdf;
    transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
  }

  .ao-i04-emblem svg {
    width: 18px;
    height: 18px;
    display: block;
  }

  nav.bottom-nav.ao-dock-f015 > a.is-active:not(.ao-dock-center),
  nav.ao-mobile-dock.ao-dock-f015 > a.is-active:not(.ao-dock-center) {
    color: #ffffff;
  }

  nav.bottom-nav.ao-dock-f015 > a.is-active:not(.ao-dock-center) .ao-i04-emblem,
  nav.ao-mobile-dock.ao-dock-f015 > a.is-active:not(.ao-dock-center) .ao-i04-emblem {
    border-color: rgba(247, 248, 248, 0.72);
    background: linear-gradient(155deg, #e63946 0%, #cd272d 62%, #8f1822 100%);
    color: #ffffff;
    box-shadow: 0 0 12px rgba(205, 39, 45, 0.55);
  }

  .ao-dock-txt {
    font-size: clamp(0.64rem, 2.5vw, 0.73rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0.01em;
  }

  .ao-f015-oct-rim {
    margin-top: -26px;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    padding: 3px;
    background: linear-gradient(145deg, #f7f8f8 0%, #aeb7bb 52%, #68747b 100%);
    clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%);
    box-sizing: border-box;
    animation: aoOctPulse 3.2s ease-in-out infinite;
  }

  .ao-f015-oct {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background: linear-gradient(150deg, #ff4b57 0%, #cd272d 56%, #85121a 100%);
    color: #ffffff;
    clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%);
  }

  .ao-f015-oct svg {
    width: 24px;
    height: 24px;
    display: block;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
  }

  .ao-dock-label {
    margin-top: 2px;
    font-size: clamp(0.66rem, 2.55vw, 0.75rem);
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
    line-height: 1.15;
  }
}

@keyframes aoOctPulse {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-2.5px) scale(1.03); }
}

@media (prefers-reduced-motion: reduce) {
  .ao-f015-oct-rim {
    animation: none !important;
  }
}

/* ==================== SECTION 25.5: 1280PX BOXED DESKTOP CONTAINER (ALEAORA) ==================== */
:root {
  --ao-box-max: 1280px;
}

.support-contact, #support-window {
  display: none !important;
}

html, body {
  overflow-x: clip !important;
}

header.topbar, main#main, footer.site-footer {
  width: 100%;
  max-width: var(--ao-box-max) !important;
  margin-inline: auto !important;
  box-sizing: border-box !important;
}

@media (min-width: 1281px) {
  html, body {
    background-color: #0f1418 !important;
    background-image: radial-gradient(ellipse 120% 45% at 50% 0%, rgba(205, 39, 45, 0.14) 0%, rgba(0, 0, 0, 0) 64%) !important;
  }
  header.topbar, main#main, footer.site-footer {
    border-inline: 1px solid rgba(222,223,223, 0.24) !important;
    box-shadow: 0 0 56px rgba(0, 0, 0, 0.72) !important;
  }
}

/* ==================== ZERO FLOATING-ICON OVERLAP (< 1460px HIDDEN, >= 1460px GUTTER-ANCHORED) ==================== */
@media (max-width: 1459px) {
  #ao-chat-fab,
  .np-chat-fab,
  #ao-minigame-fab,
  .ao-minigame-fab,
  #ao-line-float,
  .ao-line-float {
    display: none !important;
  }
}

@media (min-width: 1460px) {
  #ao-chat-fab,
  .np-chat-fab,
  #ao-minigame-fab,
  .ao-minigame-fab,
  #ao-line-float,
  .ao-line-float {
    display: grid !important;
    right: calc(50% - 640px - 66px) !important;
  }
  #ao-chat-fab,
  .np-chat-fab {
    bottom: 20px !important;
  }
  #ao-line-float,
  .ao-line-float {
    bottom: 84px !important;
  }
  #ao-minigame-fab,
  .ao-minigame-fab {
    bottom: 148px !important;
  }
  #npChatPanel {
    right: calc(50% - 640px + 16px) !important;
  }
}

/* ==================== DISTINCT AUTH ARCHETYPE STYLES (A1) ==================== */
.ao-arch-a1 .ao-wiz-progress {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}
.ao-arch-a1 .ao-wiz-track {
  height: 7px;
  border-radius: 999px;
  background: rgba(222,223,223, 0.16);
  overflow: hidden;
}
.ao-arch-a1 .ao-wiz-fill {
  height: 100%;
  width: 50%;
  border-radius: 999px;
  background: linear-gradient(90deg, #e63946, #dedfdf);
  transition: width 0.28s ease;
}
.ao-arch-a1 .ao-wiz-progress.is-step2 .ao-wiz-fill {
  width: 100%;
}
.ao-arch-a1 .ao-wiz-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: #cbd6df;
}
.ao-arch-a1 .ao-wiz-labels span.is-active {
  color: #f5f6fb;
  font-weight: 700;
}
.ao-wiz-panel {
  display: grid;
  gap: 0.9rem;
}
.ao-wiz-next {
  width: 100%;
  min-height: 50px;
  margin-top: 0.15rem;
}
.ao-wiz-actions {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  margin-top: 8px;
}

.ao-arch-a2 .ao-stepper-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}
.ao-arch-a2 .ao-stepper-bar li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 6px;
  border-radius: 12px;
  border: 1px solid rgba(222,223,223, 0.24);
  background: rgba(26,32,37, 0.75);
  color: #cbd6df;
  font-size: 0.75rem;
  text-align: center;
}
.ao-arch-a2 .ao-stepper-bar li b {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(222,223,223, 0.16);
  color: #f5f6fb;
  font-size: 0.8rem;
}
.ao-arch-a2 .ao-stepper-bar li.is-active {
  border-color: #dedfdf;
  background: linear-gradient(145deg, rgba(205,39,45, 0.55), rgba(37,47,55, 0.92));
  color: #f5f6fb;
  font-weight: 700;
}
.ao-arch-a2 .ao-stepper-bar li.is-active b,
.ao-arch-a2 .ao-stepper-bar li.is-done b {
  background: #dedfdf;
  color: #1a2025;
}
.ao-step-summary {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(222,223,223, 0.36);
  background: rgba(26,32,37, 0.82);
  color: #f5f6fb;
  font-size: 0.86rem;
  margin-bottom: 10px;
}
.ao-step-summary strong {
  color: #f5f6fb;
}

.ao-arch-a4 .ao-a5-tabs {
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(222,223,223, 0.28) !important;
  border-radius: 0 !important;
  padding: 0 !important;
  gap: 14px !important;
}
.ao-arch-a4 .ao-a5-tabs a {
  border-radius: 0 !important;
  border: 0 !important;
  border-bottom: 3px solid transparent !important;
  background: transparent !important;
  color: #cbd6df !important;
  box-shadow: none !important;
}
.ao-arch-a4 .ao-a5-tabs a[aria-current="page"] {
  border-bottom-color: #dedfdf !important;
  color: #f5f6fb !important;
}
.ao-a4-accordion {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}
.ao-a4-accordion details {
  border: 1px solid rgba(222,223,223, 0.28);
  border-radius: 10px;
  background: rgba(26,32,37, 0.72);
  padding: 9px 12px;
}
.ao-a4-accordion summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.84rem;
  color: #f5f6fb;
}
.ao-a4-accordion details p {
  margin: 7px 0 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #cbd6df;
}

.ao-arch-a5 .ao-a5-banner-strip {
  margin-top: 12px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(222,223,223, 0.42);
}
.ao-arch-a5 .ao-a5-banner-strip img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.ao-arch-a7 .ao-a5-tabs {
  border-radius: 999px !important;
  padding: 5px !important;
  background: rgba(26,32,37, 0.88) !important;
  border: 1px solid rgba(222,223,223, 0.36) !important;
}
.ao-arch-a7 .ao-a5-tabs a {
  border-radius: 999px !important;
}
.ao-arch-a7.ao-a5-shell {
  border-radius: 24px !important;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.58), 0 0 0 1px rgba(222,223,223, 0.28) !important;
}

/* Zero horizontal overflow safeguard on 360px/390px mobile */
.ao-social-band,
.ao-art-section,
.ao-bank-strip {
  max-width: 100% !important;
  min-width: 0 !important;
  overflow-x: clip !important;
  box-sizing: border-box !important;
}
