:root {
  --ink: #f7fff9;
  --muted: #abc3b5;
  --deep: #00165d;
  --deep-2: #00165d;
  --green: #e07800;
  --green-dark: #00165d;
  --gold: #e07800;
  --line: rgba(255, 255, 255, .28);
  --glass: rgba(0, 22, 93, .84);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--deep); color: var(--ink); }
body { overflow-x: hidden; }
button, a { font: inherit; }
a { color: inherit; }
button { border: 0; }

.site-stage { position: relative; min-height: 100vh; min-height: 100svh; height: 100vh; height: 100svh; overflow: hidden; isolation: isolate; background: #00165d; }
.iframe-backdrop { position: absolute; inset: 0; z-index: -1; background: #00165d; }
.app-frame { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; min-width: 100%; min-height: 100%; border: 0; background: transparent; contain: strict; opacity: 0; visibility: hidden; transition: opacity .32s ease, visibility 0s linear .32s; }
.app-frame.is-ready { opacity: 1; visibility: visible; transition: opacity .32s ease, visibility 0s; }

.loading-screen { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; overflow: auto; background: #00165d; color: #fff; transition: opacity .32s ease, visibility 0s linear .32s; }
.loading-screen.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.login-loading { display: flex; min-height: 100%; flex: 1; flex-direction: column; align-items: center; padding: max(0px, env(safe-area-inset-top)) 24px max(34px, env(safe-area-inset-bottom)); }
.login-picture { display: block; width: min(250px, 100%); height: 160px; margin-top: clamp(76px, 15.9vh, 150px); line-height: 0; }
.login-logo { display: block; width: 100%; height: auto; object-fit: contain; }
.login-fields { width: min(100%, 430px); margin-top: clamp(52px, 9.3vh, 82px); }
.login-field { display: flex; align-items: center; justify-content: space-between; height: 48px; margin-bottom: 8px; padding: 0 17px; border: 1px solid rgba(42, 44, 52, .06); border-radius: 9px; color: #595959; background: #fff; font-size: 14px; }
.phone-icon { position: relative; width: 13px; height: 19px; border: 2px solid #777; border-radius: 3px 3px 6px 6px; transform: rotate(-28deg); }
.phone-icon::before { position: absolute; top: 1px; left: 2px; width: 5px; height: 2px; border-radius: 2px; background: #777; content: ""; }
.phone-icon::after { position: absolute; bottom: 1px; left: 4px; width: 2px; height: 2px; border-radius: 50%; background: #777; content: ""; }
.lock-icon { position: relative; width: 15px; height: 13px; margin-top: 5px; border: 2px solid #777; border-radius: 3px; }
.lock-icon::before { position: absolute; left: 2px; top: -9px; width: 7px; height: 8px; border: 2px solid #777; border-bottom: 0; border-radius: 7px 7px 0 0; content: ""; }
.forgot-label { display: flex; height: 52px; align-items: flex-start; justify-content: flex-end; padding-top: 0; color: #fff; font-size: 16px; }
.login-submit { display: grid; height: 48px; place-items: center; border-radius: 8px; color: #fff; background: #e07800; font-size: 16px; font-weight: 700; }
.login-or { display: flex; align-items: center; gap: 12px; height: 55px; color: #fff; font-size: 16px; }
.login-or span { height: 1px; flex: 1; background: rgba(255,255,255,.43); }
.login-or b { font-weight: 400; }
.register-placeholder { display: flex; height: 49px; align-items: center; justify-content: center; gap: 10px; border-radius: 8px; color: #fff; background: rgba(224, 120, 0, .82); font-size: 16px; font-weight: 700; }
.register-placeholder b { font-size: 18px; font-weight: 400; }
.support-placeholder { display: flex; width: min(100%, 430px); flex-direction: column; align-items: flex-end; gap: 5px; margin-top: auto; padding-top: 48px; color: #fff; font-size: 16px; }
.support-placeholder b { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; }
.support-placeholder svg { width: 19px; height: 19px; fill: currentColor; }
@supports (height: 100svh) {
  .login-picture { margin-top: clamp(76px, 15.9svh, 150px); }
  .login-fields { margin-top: clamp(52px, 9.3svh, 82px); }
}

.frame-status { position: absolute; z-index: 5; left: 50%; bottom: 24px; bottom: max(24px, calc(env(safe-area-inset-bottom) + 16px)); transform: translateX(-50%); width: min(92vw, 560px); padding: 12px 16px; border: 1px solid rgba(224,120,0,.42); border-radius: 12px; background: rgba(0, 22, 93, .94); color: #fff; box-shadow: 0 12px 40px rgba(0,0,0,.25); font-size: .84rem; text-align: center; }
.frame-status a { color: var(--gold); }
.seo-content { position: absolute; top: 0; left: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }

.fab-wrap { position: fixed; z-index: 20; right: 22px; bottom: 24px; right: max(22px, env(safe-area-inset-right)); bottom: max(24px, env(safe-area-inset-bottom)); width: 66px; height: 66px; touch-action: none; visibility: visible; }
.whatsapp-fab { position: relative; display: block; width: 66px; height: 66px; border: 2px solid #fff; border-radius: 50%; color: white; background: #f3670f; cursor: grab; text-decoration: none; box-shadow: 0 16px 36px rgba(0, 0, 0, .36); }
.whatsapp-fab::after { position: absolute; z-index: 1; inset: -2px; border: 2px solid rgba(22,199,132,.58); border-radius: 50%; content: ""; pointer-events: none; will-change: transform, opacity; animation: pulse-ring 2.2s ease-out infinite; }
.whatsapp-fab:active { cursor: grabbing; }
.whatsapp-fab-image { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.whatsapp-badge { position: absolute; z-index: 2; left: -5px; bottom: -4px; display: grid; place-items: center; width: 27px; height: 27px; border: 2px solid #fff; border-radius: 50%; color: #fff; background: #16bd62; box-shadow: 0 3px 9px rgba(0,0,0,.34); pointer-events: none; }
.whatsapp-badge svg { width: 17px; height: 17px; fill: currentColor; }
.whatsapp-bubble { position: absolute; z-index: 22; right: 0; bottom: calc(100% + 13px); display: flex; width: min(168px, calc(100vw - 24px)); height: 40px; align-items: center; padding: 0 14px; border: 1px solid rgba(255,255,255,.13); border-radius: 12px; color: #effff6; background: rgba(53, 19, 4, .96); box-shadow: 0 10px 32px rgba(0,0,0,.3); font-size: .8rem; font-weight: 700; letter-spacing: .01em; line-height: 18px; white-space: nowrap; transition: opacity .2s ease; }
.whatsapp-bubble[data-align="left"] { right: auto; left: 0; }
.whatsapp-bubble[data-align="center"] { right: auto; left: 50%; transform: translateX(-50%); }
.whatsapp-bubble[data-placement="below"] { top: calc(100% + 13px); bottom: auto; }
.whatsapp-bubble.is-dismissed { opacity: 0; pointer-events: none; }
.bubble-arrow { position: absolute; width: 10px; height: 10px; background: inherit; border-right: 1px solid rgba(255,255,255,.13); border-bottom: 1px solid rgba(255,255,255,.13); transform: rotate(45deg); }
.whatsapp-bubble[data-placement="above"] .bubble-arrow { right: 22px; bottom: -6px; }
.whatsapp-bubble[data-placement="below"] .bubble-arrow { right: 22px; top: -6px; transform: rotate(225deg); }
.whatsapp-bubble[data-align="left"] .bubble-arrow { right: auto; left: 22px; }
.whatsapp-bubble[data-align="center"] .bubble-arrow { right: auto; left: calc(50% - 5px); }

.install-prompt { position: fixed; z-index: 40; left: 50%; bottom: 18px; bottom: max(18px, env(safe-area-inset-bottom)); display: flex; align-items: stretch; gap: 14px; width: min(510px, calc(100vw - 32px)); padding: 15px 42px 15px 15px; transform: translateX(-50%); border: 1px solid #d7e1db; border-radius: 20px; color: #16251f; background: #f8fbf9; box-shadow: 0 20px 60px rgba(0,0,0,.28), 0 2px 8px rgba(7,26,22,.08); font-size: .8rem; }
.install-prompt[hidden] { display: none; }
.install-logo { display: block; flex: 0 0 64px; width: 64px; min-height: 64px; height: auto; align-self: stretch; overflow: hidden; border: 1px solid #d7e1db; border-radius: 15px; box-shadow: 0 5px 16px rgba(0,0,0,.18); }
.install-logo-image { display: block; width: 100%; height: 100%; min-height: 64px; object-fit: cover; }
.install-copy { display: flex; flex: 1; min-width: 0; flex-direction: column; align-items: flex-start; justify-content: center; gap: 7px; }
#installButton { display: inline-flex; width: max-content; max-width: 100%; min-height: 44px; align-items: center; justify-content: center; gap: 7px; padding: 8px 13px; border: 1px solid #10227f; border-radius: 9px; color: #fff; background: #142ca5; box-shadow: 0 7px 20px rgba(20,44,165,.28); cursor: pointer; font-size: .75rem; font-weight: 800; text-align: left; white-space: nowrap; transition: transform .18s ease, filter .18s ease; }
#installButton svg { width: 18px; height: 18px; flex: 0 0 18px; }
#installButton:hover { transform: translateY(-1px); filter: brightness(1.08); }
.install-store { color: #40564c; font-size: .7rem; font-weight: 600; line-height: 1.35; }
.install-dismiss { position: absolute; top: 7px; right: 9px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: #294238; background: transparent; cursor: pointer; font-size: 1.15rem; }
.noscript-note { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; color: white; background: var(--deep); text-align: center; }
.noscript-note a { color: var(--gold); }

@keyframes pulse-ring { 0% { opacity: .7; transform: scale(1); } 65%, 100% { opacity: 0; transform: scale(1.38); } }

@media (max-width: 640px) {
  .fab-wrap { right: 16px; bottom: 16px; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); }
  .install-prompt { bottom: 12px; bottom: max(12px, calc(env(safe-area-inset-bottom) + 8px)); gap: 9px; width: min(510px, calc(100vw - 20px)); padding: 12px 34px 12px 10px; border-radius: 17px; }
  .install-logo { flex-basis: 56px; width: 56px; min-height: 56px; border-radius: 13px; }
  .install-logo-image { min-height: 56px; }
  .install-copy { gap: 6px; }
  #installButton { width: max-content; justify-content: center; gap: 5px; padding: 8px 11px; font-size: .67rem; }
  #installButton svg { width: 16px; height: 16px; flex-basis: 16px; }
  .install-store { font-size: .67rem; }
}
@media (max-width: 640px) and (max-height: 700px) {
  .login-picture { margin-top: clamp(40px, 10vh, 70px); }
  .login-fields { margin-top: clamp(24px, 5vh, 36px); }
  .login-field { height: 44px; margin-bottom: 6px; padding-inline: 14px; }
  .forgot-label { height: 40px; font-size: 15px; }
  .login-submit, .register-placeholder { height: 44px; }
  .login-or { height: 40px; }
  .support-placeholder { padding-top: 20px; font-size: 14px; }
  .support-placeholder b { font-size: 14px; }
}
@supports (height: 100svh) {
  @media (max-width: 640px) and (max-height: 700px) {
    .login-picture { margin-top: clamp(40px, 10svh, 70px); }
    .login-fields { margin-top: clamp(24px, 5svh, 36px); }
  }
}
@media (max-height: 480px) {
  .login-loading { padding-bottom: max(10px, env(safe-area-inset-bottom)); }
  .login-picture { margin-top: 12px; }
  .login-fields { margin-top: 12px; }
  .login-field { height: 34px; margin-bottom: 4px; }
  .forgot-label { height: 24px; font-size: 13px; }
  .login-submit, .register-placeholder { height: 34px; font-size: 14px; }
  .login-or { height: 26px; font-size: 14px; }
  .support-placeholder { gap: 3px; padding-top: 8px; font-size: 13px; }
  .support-placeholder b { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
}
