/* Nexvoryn gate (release 7): instructions, notifications and the home screen shortcut before the first message.
   Self-contained: used on the business pages and on the direct message link. Flat colours. */
.ng-on { overflow: hidden; }
.ng { position: fixed; inset: 0; z-index: 2147483000; display: flex; align-items: flex-end; justify-content: center; background: rgba(8, 16, 32, .72); font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; animation: ng-fade .25s ease both; }
.ng-card { width: 100%; max-width: 460px; max-height: 94dvh; display: flex; flex-direction: column; background: #fff; color: #0F1B33; border-radius: 24px 24px 0 0; box-shadow: 0 -20px 60px -20px rgba(0, 0, 0, .5); animation: ng-up .38s cubic-bezier(.2, .8, .2, 1) both; overflow: hidden; }
.ng-head { position: relative; flex: none; padding: 16px 52px 14px 18px; background: #0F1B33; color: #fff; }
.ng-prog { display: flex; align-items: center; gap: 6px; }
.ng-prog span { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: rgba(255, 255, 255, .5); white-space: nowrap; }
.ng-prog span + span::before { content: ""; width: 14px; height: 1.5px; margin-right: 2px; background: rgba(255, 255, 255, .22); }
.ng-prog i { flex: none; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .12); font-style: normal; font-size: 12px; font-weight: 700; }
.ng-prog .is-on { color: #fff; } .ng-prog .is-on i { background: #FBBF24; color: #3A2500; }
.ng-prog .is-done { color: rgba(255, 255, 255, .78); } .ng-prog .is-done i { background: #08805F; color: #fff; } .ng-prog .is-done .ng-ic { width: 13px; height: 13px; stroke-width: 2.6; }
.ng-prog em { font-style: normal; }
.ng .ng-x { position: absolute; right: 10px; top: 9px; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer; }
.ng-ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ng-body { flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 22px 18px calc(18px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 14px; }
.ng-hero { display: grid; justify-items: start; gap: 8px; }
.ng-hero-ic { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; background: #DDF3EB; color: #06694E; margin-bottom: 4px; }
.ng-hero-ic .ng-ic { width: 26px; height: 26px; }
.ng-hero h2 { margin: 0; font: 700 21px/1.25 Sora, Inter, system-ui, sans-serif; letter-spacing: -.025em; color: #0F1B33; }
.ng-hero p { margin: 0; color: #4A5670; font-size: 15px; line-height: 1.5; }
.ng-rules { max-height: 38dvh; overflow-y: auto; padding: 14px 16px; border-radius: 14px; background: #F4F6F8; border: 1px solid #E1E6EC; }
.ng-rules p { margin: 0; white-space: pre-line; color: #0F1B33; font-size: 14.5px; line-height: 1.55; overflow-wrap: anywhere; } .ng-rules p + p { margin-top: 10px; }
.ng-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ng-steps li { display: grid; grid-template-columns: 26px 22px minmax(0, 1fr); align-items: center; gap: 10px; padding: 11px 12px; border-radius: 12px; background: #F4F6F8; color: #0F1B33; font-size: 14.5px; line-height: 1.4; }
.ng-steps li b { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: #0F1B33; color: #fff; font-size: 13px; font-weight: 700; }
.ng-steps li .ng-ic { width: 21px; height: 21px; color: #06694E; }
.ng-note { margin: 0; padding: 10px 12px; border-radius: 12px; background: #FEF3C7; color: #5B3A06; font-size: 13.5px; line-height: 1.45; }
.ng-hint { margin: 0; padding: 0 12px; max-height: 0; overflow: hidden; border-radius: 12px; background: #FEF3C7; color: #5B3A06; font-size: 14px; line-height: 1.5; transition: max-height .4s ease, padding .3s ease; }
.ng-hint.is-on { max-height: 220px; padding: 12px; }
.ng-more { border-radius: 12px; border: 1px solid #E1E6EC; padding: 0 12px; } .ng-more summary { padding: 12px 0; font-weight: 600; font-size: 14px; color: #06694E; cursor: pointer; }
.ng-more p { margin: 0 0 8px; color: #4A5670; font-size: 14px; } .ng-more .ng-steps { margin-bottom: 12px; }
.ng .ng-btn { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 50px; padding: 0 18px; border: 1px solid #E1E6EC; border-radius: 14px; background: #fff; color: #0F1B33; font: 600 16px/1.2 Inter, system-ui, sans-serif; cursor: pointer; transition: background-color .2s, transform .15s; -webkit-tap-highlight-color: transparent; }
.ng .ng-btn:active { transform: scale(.98); }
.ng .ng-btn--primary { border-color: transparent; background: #08805F; color: #fff; } .ng .ng-btn--primary:hover { background: #066B50; }
.ng .ng-btn--link { min-height: 40px; border: 0; background: none; color: #4A5670; font-size: 14px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.ng .ng-btn:focus-visible, .ng .ng-x:focus-visible { outline: 3px solid #FBBF24; outline-offset: 2px; }
@keyframes ng-fade { from { opacity: 0; } } @keyframes ng-up { from { transform: translateY(40px); opacity: 0; } }
@media (min-width: 640px) { .ng { align-items: center; padding: 20px; } .ng-card { border-radius: 22px; max-height: 88dvh; } }
@media (prefers-color-scheme: dark) {
  .ng-card { background: #111D34; color: #EAF0F7; } .ng-hero h2, .ng-rules p, .ng-steps li { color: #EAF0F7; } .ng-hero p, .ng-more p, .ng .ng-btn--link { color: #A9B5C8; }
  .ng-rules, .ng-steps li { background: #17274B; border-color: rgba(255, 255, 255, .08); } .ng-steps li b { background: #EAF0F7; color: #0F1B33; } .ng-steps li .ng-ic, .ng-more summary { color: #34D399; }
  .ng-hero-ic { background: rgba(52, 211, 153, .16); color: #34D399; } .ng .ng-btn { background: #17274B; border-color: rgba(255, 255, 255, .1); color: #EAF0F7; } .ng .ng-btn--primary { background: #08805F; color: #fff; } .ng .ng-btn--link { background: none; }
  .ng-more { border-color: rgba(255, 255, 255, .1); }
}
@media (prefers-reduced-motion: reduce) { .ng, .ng-card { animation: none; } }
