/* A single, non-interactive tide behind each page. */
body { isolation: isolate; }
.sea-light {
  position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background: linear-gradient(118deg, #f8fcff 0%, transparent 40%, #f5faff 100%);
}
.sea-light::before, .sea-light::after {
  content: ""; position: absolute; width: min(76vw, 1020px); height: min(60vw, 600px);
  border-radius: 50%;
}
.sea-light::before {
  top: -18%; right: -15%;
  background: radial-gradient(ellipse, rgba(51,182,229,.15), transparent 70%);
}
.sea-light::after {
  left: -28%; bottom: -20%; height: 70%;
  background: repeating-radial-gradient(ellipse at center, transparent 0 29px, rgba(40,122,181,.085) 30px, transparent 31px 48px);
  mask-image: radial-gradient(ellipse, #000 25%, transparent 72%);
}
.art { background: radial-gradient(ellipse at 68% 28%,#fff 1%,#dcf5ff 49%,#c9e0f8); }
.art img { filter: drop-shadow(0 12px 15px rgb(24 87 152 / 12%)); }
.brand-strip .shell { display:grid; grid-template-columns:auto repeat(3,1fr); gap:24px; padding-block:18px; }
.brand-strip .brand-item { display:flex; align-items:center; justify-content:center; min-height:40px; gap:10px; }
.brand-item img { width:clamp(88px,10vw,140px); height:32px; object-fit:contain; }
.brand-item.android img { width:35px; height:32px; }
.brand-item.android strong { color:#193b35; }
.brand-item .fallback {font-weight:700; color:#27496b;}
@keyframes tide-drift { from{transform:translate3d(-3%,1%,0)} to{transform:translate3d(7%,5%,0)} }
@keyframes crest { from{transform:translateY(0)} to{transform:translateY(-5px)} }
@keyframes orbit-shift { from{transform:rotate(-36deg) scale(.98)} to{transform:rotate(-32deg) scale(1.035)} }
@media(prefers-reduced-motion:no-preference) {
  .sea-light::before { animation:tide-drift 19s ease-in-out infinite alternate; }
  .sea-light::after { animation:tide-drift 29s -11s ease-in-out infinite alternate-reverse; }
  .art img,.identity>img { animation:crest 6s ease-in-out infinite alternate; }
  .art .orbit { animation:orbit-shift 13s ease-in-out infinite alternate; }
  :is(.button,.outline,.edition,.btn-submit,.login-btn,.transfer-btn,.brand-item img) { transition:transform 180ms ease,box-shadow 180ms ease,background-color 180ms ease; }
  @media(hover:hover) {
    :is(.button,.outline,.edition,.btn-submit,.login-btn,.transfer-btn):hover { transform:translateY(-2px); box-shadow:0 5px 16px rgb(16 73 137 / 12%); }
  }
}
@media(max-width:720px) {
  .brand-strip .shell { grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
  .brand-strip small { grid-column:1/-1; }
  .brand-item img { max-width:100%; height:24px; }
  .brand-strip .android { gap:4px; }
  .brand-strip .android img {width:24px;}
  .sea-light::after {width:100vw;bottom:-30%;}
}
@media print { .sea-light {display:none} }

body:not(.poseidon-home) .sea-light { background: radial-gradient(ellipse at 85% 10%, rgba(37,155,225,.10), transparent 38%), radial-gradient(ellipse at 5% 90%, rgba(55,105,206,.07), transparent 35%); }
body:not(.poseidon-home) .sea-light::before { width: min(58vw,680px); height: min(58vw,680px); top: 5%; right: -8%; border-radius: 0; background: url('poseidon-mark.png') center / contain no-repeat; opacity: .045; filter: saturate(.7); }
body:not(.poseidon-home) .sea-light::after { width: 110vw; height: 70vh; left: -18%; bottom: -15%; background: repeating-linear-gradient(118deg, transparent 0 130px, rgba(43,137,217,.055) 131px 132px, transparent 133px 240px); mask-image: linear-gradient(transparent, #000 35%, transparent); }
body.poseidon-panel { background: #f5f9fd !important; }
.poseidon-panel :is(.card,.stat-card,.modal-card) { box-shadow: 0 12px 32px rgba(24,60,96,.06) !important; }
.poseidon-panel :is(.card,.stat-card) { transition: border-color .2s ease, box-shadow .2s ease; }
.poseidon-panel :is(.card,.stat-card):hover { border-color: #b9d8f1 !important; box-shadow: 0 16px 38px rgba(24,88,149,.09) !important; }
.poseidon-panel :is(.nav-link,.sb-item) { border-radius: 9px; transition: color .2s ease, background-color .2s ease; }
.poseidon-panel :is(.nav-link,.sb-item):hover { background: #edf6ff; color: #1260b3; }
.access .identity { position: relative; overflow: hidden; background: radial-gradient(ellipse at 35% 48%, #123e72, #08192f 65%, #07111e); border-color: #193452; color: #f4faff; }
.access .identity::before { content: ''; position: absolute; inset: -35%; pointer-events: none; background: repeating-linear-gradient(115deg, transparent 0 110px, rgba(101,199,255,.1) 111px 112px, transparent 113px 205px); mask-image: radial-gradient(ellipse, #000, transparent 65%); }
.access .identity>a, .access .identity p { color: #c8dced; }
.access .identity img { position: relative; filter: drop-shadow(0 18px 36px rgba(0,171,255,.24)); }
.access .form-area { background: rgba(250,253,255,.78); }
.access :is(.form-input,.input-wrapper input,.login-container input) { border-radius: 10px; transition: border-color .2s, box-shadow .2s; }
.access :is(.form-input,.input-wrapper input,.login-container input):focus { outline: none; border-color: #2586dc; box-shadow: 0 0 0 4px rgba(37,134,220,.12); }
.access :is(.btn-submit,.login-btn) { background: linear-gradient(110deg,#1456c4,#168cd0); box-shadow: 0 8px 20px rgba(18,91,185,.18); }
@keyframes poseidon-beam { from { transform: translate3d(-5%,0,0); } to { transform: translate3d(6%,2%,0); } }
@media (prefers-reduced-motion:no-preference) { body:not(.poseidon-home) .sea-light::after { animation: poseidon-beam 18s ease-in-out infinite alternate; } }
.demo-tabs { display: flex; gap: 5px; overflow-x: auto; border-bottom: 1px solid #edf2f6; padding-bottom: 7px; }
.demo-tab { border: 0; border-radius: 5px; background: transparent; padding: 5px 7px; color: #66849a; font: 700 9px 'Segoe UI',sans-serif; white-space: nowrap; cursor: pointer; }
.demo-tab:hover, .demo-tab.is-active { background: #e8f5fd; color: #166e9d; }
.demo-tab:focus-visible { outline: 2px solid #1985c1; outline-offset: 1px; }
@media (prefers-reduced-motion:reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }
