:root {
    --cms-ink: #f4f5ff;
    --cms-muted: #a7b0c8;
    --cms-line: rgba(152, 165, 231, .23);
    --cms-violet: #9661f4;
    /* Telegram's device and content insets describe separate occupied areas. */
    --cms-device-top: max(env(safe-area-inset-top, 0px), var(--coremap-device-safe-top, 0px), var(--tg-safe-area-inset-top, 0px));
    --cms-device-bottom: max(env(safe-area-inset-bottom, 0px), var(--coremap-device-safe-bottom, 0px), var(--tg-safe-area-inset-bottom, 0px));
    --cms-safe-top: max(var(--cms-device-top), var(--coremap-content-safe-top, 0px));
    --cms-safe-bottom: max(var(--cms-device-bottom), var(--coremap-content-safe-bottom, 0px), var(--tg-content-safe-area-inset-bottom, 0px));
    --cms-safe-left: max(env(safe-area-inset-left, 0px), var(--coremap-content-safe-left, 0px), var(--tg-content-safe-area-inset-left, 0px));
    --cms-safe-right: max(env(safe-area-inset-right, 0px), var(--coremap-content-safe-right, 0px), var(--tg-content-safe-area-inset-right, 0px));
}

html.coremap-telegram-fullscreen {
    --cms-safe-top: max(var(--coremap-content-safe-top, 0px), calc(var(--cms-device-top) + var(--tg-content-safe-area-inset-top, 0px)));
    --cms-safe-bottom: max(var(--coremap-content-safe-bottom, 0px), calc(var(--cms-device-bottom) + var(--tg-content-safe-area-inset-bottom, 0px)));
}
/* Leave room for Telegram's fullscreen buttons while its inset event arrives. */
html.coremap-telegram-fullscreen.coremap-telegram-mobile .cms-paywall { --cms-safe-top: max(100px, var(--coremap-content-safe-top, 0px), calc(var(--cms-device-top) + var(--tg-content-safe-area-inset-top, 0px))); }

html.coremap-subscription-locked,
.coremap-subscription-locked body { overflow: hidden !important; }
.coremap-subscription-locked #coreMapMapSection,
.coremap-subscription-locked #coreMapTools,
.coremap-subscription-locked #staffPanel,
.coremap-subscription-locked #coreMapUserProfileButton { visibility: hidden !important; pointer-events: none !important; }
.coremap-subscription-locked main.container { visibility: hidden !important; pointer-events: none !important; }
.coremap-subscription-gate-visible #coreMapStartupUnavailable { visibility: hidden !important; pointer-events: none !important; }
.cms-paywall[hidden], .cms-paywall [hidden] { display: none !important; }
.cms-paywall * { box-sizing: border-box; }
.cms-paywall { color: var(--cms-ink); font-family: inherit; font-size: 15px; line-height: 1.45; }
.cms-paywall button { font: inherit; }
.cms-paywall button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.cms-paywall button:focus-visible, .cms-paywall a:focus-visible { outline: 3px solid #c9b8ff; outline-offset: 3px; }
.cms-paywall {
    position: fixed;
    inset: 0;
    z-index: 12900;
    isolation: isolate;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    background: radial-gradient(ellipse at 50% 0%, rgba(64, 62, 137, .27), transparent 55%), #090e1d;
    padding: calc(var(--cms-safe-top) + 20px) calc(var(--cms-safe-right) + 20px) calc(var(--cms-safe-bottom) + 28px) calc(var(--cms-safe-left) + 20px);
    scroll-padding-top: calc(var(--cms-safe-top) + 20px);
    scroll-padding-bottom: calc(var(--cms-safe-bottom) + 24px);
    -webkit-overflow-scrolling: touch;
}
.cms-paywall::before { content: ""; position: fixed; z-index: -1; pointer-events: none; width: min(115vw, 650px); height: min(115vw, 650px); top: -180px; left: calc(50% - min(57.5vw, 325px)); border-radius: 50%; background: radial-gradient(circle, rgba(112, 76, 233, .18), rgba(86, 97, 224, .05) 45%, transparent 70%); animation: cms-ambient 16s ease-in-out infinite alternate; }
.cms-paywall-panel { position: relative; width: 100%; max-width: 480px; margin: 0 auto; padding-bottom: 8px; }
.cms-brand { display: flex; align-items: center; gap: 10px; min-height: 36px; color: #f4f3ff; font-size: 18px; font-weight: 750; letter-spacing: -.35px; }
.cms-brand-icon { display: grid; place-items: center; flex: none; width: 34px; height: 38px; }
.cms-brand-icon svg { display: block; width: 30px; height: 36px; }
.cms-brand-badge { margin-left: auto; padding: 6px 11px; border: 1px solid rgba(175, 155, 255, .28); border-radius: 30px; color: #d3c7ff; background: rgba(140, 112, 233, .08); font-size: 11px; font-weight: 650; letter-spacing: .2px; }
.cms-illustration { position: relative; width: 100%; height: 216px; margin: 5px 0 8px; overflow: hidden; border-radius: 24px; pointer-events: none; }
.cms-city { display: block; width: 100%; height: 100%; overflow: visible; }
.cms-city-aura { transform-origin: 220px 112px; animation: cms-hero-aura 5s ease-in-out infinite; }
.cms-city-roads { opacity: .48; }
.cms-map-route-glow { opacity: .1; }
.cms-map-route { opacity: .9; }
.cms-map-route-flow { stroke-dasharray: 8 92; animation: cms-route-travel 4.5s linear infinite; }
.cms-location { transform-box: fill-box; transform-origin: center; animation: cms-location-float 4s ease-in-out infinite; }
.cms-pin-shadow { transform-origin: 220px 161px; animation: cms-pin-shadow 4s ease-in-out infinite; }
.cms-map-rings { stroke-width: 1; opacity: .48; }
.cms-map-ring-outer { transform-origin: 220px 158px; animation: cms-map-ring 4s ease-out infinite; }
.cms-map-orbit > ellipse { animation: cms-orbit-dashes 12s linear infinite; }
.cms-map-orbit-dot { animation: cms-point-pulse 3s ease-in-out infinite; }
.cms-mini-pin { animation: cms-point-pulse 3.2s ease-in-out infinite; }
.cms-mini-pin-b { animation-delay: -1.6s; }
.cms-hero-star { transform-box: fill-box; transform-origin: center; animation: cms-star-twinkle 4s ease-in-out infinite; }
.cms-hero-star-b { animation-delay: -1.2s; }
.cms-hero-star-c { animation-delay: -2.7s; }
.cms-hero-caption { position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; justify-content: center; gap: 7px; width: max-content; max-width: 100%; padding: 5px 11px; border: 1px solid rgba(151, 143, 223, .14); border-radius: 30px; background: rgba(20, 27, 50, .75); color: #c3c8e0; font-size: 9px; font-weight: 500; letter-spacing: .2px; }
.cms-hero-caption i { flex: none; width: 4px; height: 4px; border-radius: 50%; background: #82e1d7; box-shadow: 0 0 8px rgba(130, 225, 215, .65); }
.cms-intro { text-align: center; margin-bottom: 24px; }
.cms-eyebrow { color: #afa7ce; font-size: 10px; font-weight: 750; letter-spacing: 1.25px; text-transform: uppercase; }
.cms-intro h1 { margin: 10px 0 12px; color: #faf8ff; font-size: clamp(27px, 7.1vw, 36px); line-height: 1.13; font-weight: 760; letter-spacing: -1px; text-wrap: balance; }
.cms-intro h1 > span { color: #b9acff; }
.cms-intro p { max-width: 360px; margin: 0 auto; color: #b4b7d0; font-size: 13px; line-height: 1.6; text-wrap: balance; }
.cms-benefits { display: grid; gap: 13px; margin: 0 0 25px; padding: 17px 0; border-top: 1px solid rgba(163, 157, 221, .1); border-bottom: 1px solid rgba(163, 157, 221, .1); list-style: none; font-size: 13px; color: #d6daeb; }
.cms-benefits li { display: flex; align-items: center; gap: 11px; }
.cms-benefits li::before { content: "✓"; display: grid; place-items: center; flex: none; width: 22px; height: 22px; border: 1px solid rgba(170, 143, 255, .19); border-radius: 8px; background: rgba(141, 107, 237, .1); font-weight: 800; color: #bc9fff; font-size: 13px; line-height: 1; }
.cms-plans { display: grid; gap: 10px; }
.cms-plan { position: relative; display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; min-height: 80px; padding: 15px 16px; color: var(--cms-ink); background: linear-gradient(115deg, rgba(35, 44, 73, .72), rgba(23, 29, 49, .85)); border: 1px solid rgba(152, 165, 231, .22); border-radius: 20px; text-align: left; cursor: pointer; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .045); transition: border-color .2s ease, background .2s ease, box-shadow .2s ease, transform .18s ease; }
.cms-plan.is-selected { border-color: #ad96ff; background: linear-gradient(115deg, rgba(99, 82, 177, .55), rgba(66, 45, 120, .65)); box-shadow: 0 0 0 1px rgba(151, 123, 255, .16), 0 8px 24px rgba(41, 25, 90, .15), inset 0 1px 0 rgba(255, 255, 255, .14); }
.cms-plan:not(:disabled):active { transform: scale(.988); }
.cms-plan:disabled { cursor: default; }
.cms-plan:disabled:not(.is-selected) { opacity: .48; }
.cms-plan-radio { height: 18px; width: 18px; border: 1.5px solid #747d9a; border-radius: 50%; transition: border-color .2s ease, background-color .2s ease; }
.cms-plan.is-selected .cms-plan-radio { border: 5px solid #b69aff; background: #fff; box-shadow: 0 0 12px rgba(181, 153, 255, .24); }
.cms-plan-name { min-width: 0; font-size: 14px; font-weight: 650; }
.cms-plan-name small { display: table; padding: 2px 8px; margin-top: 5px; border-radius: 20px; background: rgba(140, 115, 222, .21); font-size: 10px; font-weight: 650; color: #dcccff; }
.cms-plan-amount { max-width: 170px; overflow-wrap: anywhere; text-align: right; font-size: 18px; font-weight: 750; font-variant-numeric: tabular-nums; letter-spacing: -.3px; }
.cms-plan-amount small { display: block; margin-top: 3px; color: #bfc2d6; font-size: 10px; font-weight: 450; }
.cms-charge-note { margin: 14px 4px 17px; text-align: center; color: #9fa8c0; font-size: 11px; line-height: 1.5; }
.cms-payment-methods { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 9px; margin-top: 16px; }
.cms-payment-method { display: flex; align-items: center; gap: 9px; min-width: 0; min-height: 63px; padding: 11px 12px; border: 1px solid var(--cms-line); border-radius: 16px; text-align: left; font-size: 12px; font-weight: 650; color: #dfdef8; background: rgba(79, 65, 132, .18); }
.cms-payment-stars { border-color: rgba(221, 184, 112, .25); background: linear-gradient(125deg, rgba(162, 119, 50, .1), rgba(85, 63, 132, .12)); }
.cms-payment-method small { display: block; margin-top: 3px; font-size: 10px; font-weight: 450; color: #a6abc3; }
.cms-payment-stars > span:first-child { font-size: 22px; color: #e5be70; }
.cms-payment-card { justify-content: space-between; background: rgba(100, 110, 138, .07); color: #8e97b0; cursor: default; }
.cms-payment-card small { margin-top: 0; padding: 3px 6px; border: 1px solid rgba(138, 151, 180, .17); border-radius: 20px; color: #8e97b0; font-size: 9px; }
.cms-stars-note { margin: -8px 0 16px; color: #b4abc9; text-align: center; font-size: 10px; line-height: 1.5; }
.cms-terms { margin: 15px 0 8px; padding: 0 13px; border: 1px solid rgba(152, 165, 231, .15); border-radius: 13px; color: #aeb5ce; font-size: 11px; line-height: 1.6; background: rgba(24, 32, 54, .34); }
.cms-terms summary { color: #c6baf0; cursor: pointer; padding: 12px 0; }
.cms-terms p { margin: 8px 0; }
.cms-terms a, .cms-terms-link { color: #c5b8fa; text-underline-offset: 2px; }
.cms-terms-link { display: inline-block; margin: 14px 0 4px; font-size: 11px; }
.cms-consent { margin: 9px 0 14px; color: #9fa7c0; font-size: 10px; line-height: 1.6; }
.cms-primary { position: relative; isolation: isolate; overflow: hidden; display: block; width: 100%; padding: 17px 15px; min-height: 56px; border-radius: 17px; border: 1px solid rgba(197, 176, 255, .5); color: white; background: linear-gradient(110deg, #6971f5, #9456e9); box-shadow: 0 9px 28px rgba(101, 69, 224, .28), inset 0 1px 0 rgba(255, 255, 255, .23); font-size: 15px; font-weight: 750; cursor: pointer; transition: opacity .2s ease, transform .18s ease; }
.cms-paywall .cms-primary:not(:disabled)::after { content: ""; position: absolute; inset: 0 auto 0 -60%; width: 45%; background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .16), transparent); pointer-events: none; animation: cms-button-sheen 8s ease-in-out infinite; }
.cms-primary:disabled { opacity: .45; box-shadow: none; cursor: default; }
.cms-primary:not(:disabled):active, .cms-secondary:not(:disabled):active { filter: brightness(1.1); transform: scale(.99); }
.cms-secondary { display: block; width: 100%; padding: 13px; min-height: 47px; margin-top: 10px; border-radius: 15px; border: 1px solid var(--cms-line); background: rgba(83, 91, 138, .14); color: #d7d6f8; font-weight: 650; cursor: pointer; }
.cms-secondary:disabled { opacity: .5; }
.cms-text-button { display: block; margin: 14px auto 0; padding: 7px 12px; min-height: 36px; color: #afb4d4; border: 0; background: none; font-size: 12px; cursor: pointer; }
.cms-error, .cms-notice, .cms-payment-status { margin: 12px 0; padding: 13px 14px; border-radius: 14px; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.cms-error { background: rgba(168, 58, 88, .14); border: 1px solid rgba(241, 126, 153, .25); color: #f5b2c0; }
.cms-notice { background: rgba(127, 109, 199, .12); color: #c5c4df; border: 1px solid rgba(160, 146, 219, .2); }
.cms-payment-status { color: #d3d4eb; text-align: center; padding: 7px 12px; }
.cms-checking { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 160px; padding: 25px 15px; color: #bbc0d9; font-size: 14px; }
.cms-spinner { display: inline-block; height: 20px; width: 20px; border: 2px solid #3e4563; border-top-color: #bba4ff; border-radius: 50%; animation: cms-spin .8s linear infinite; }
.cms-legal { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 20px; margin-top: 20px; padding-top: 14px; border-top: 1px solid rgba(152, 165, 231, .1); font-size: 11px; }
.cms-legal a { display: inline-flex; align-items: center; min-height: 40px; color: #a5adc9; padding: 4px 0; text-decoration: none; }
.cms-active-panel { padding-top: 20px; }
.cms-connection-panel { margin-block: clamp(24px, 12vh, 120px); padding: 26px; border: 1px solid var(--cms-line); border-radius: 28px; background: linear-gradient(145deg, rgba(35, 44, 73, .8), rgba(14, 21, 39, .94)); }
.cms-connection-icon { display: grid; place-items: center; width: 76px; height: 76px; margin: 34px auto 24px; border: 1px solid rgba(164, 158, 234, .3); border-radius: 24px; color: #b8b4f3; background: rgba(111, 100, 200, .12); }
.cms-connection-icon svg { width: 40px; height: 40px; }
.cms-active-check { display: grid; place-items: center; width: 76px; height: 76px; margin: 55px auto 27px; border-radius: 50%; border: 1px solid rgba(129, 221, 185, .4); background: rgba(67, 175, 134, .13); color: #91e4bc; font-size: 42px; }
.cms-app-link { text-align: center; text-decoration: none; }
.cms-close { display: grid; place-items: center; flex: none; width: 43px; height: 43px; margin-left: auto; padding: 0; border-radius: 15px; border: 1px solid var(--cms-line); color: #e9e9fa; background: rgba(138, 144, 186, .11); font-size: 28px !important; cursor: pointer; }
.cms-trial-close { width: 36px; height: 36px; margin-left: 0; border-radius: 12px; }
.cms-trial-summary { margin: 0 0 22px; padding: 19px 20px 17px; border: 1px solid rgba(174, 151, 255, .3); border-radius: 20px; background: linear-gradient(120deg, rgba(102, 78, 188, .24), rgba(45, 46, 91, .22)); box-shadow: inset 0 1px 0 rgba(221, 210, 255, .06); }
.cms-trial-period { display: flex; align-items: center; gap: 13px; color: #d6c7ff; font-size: 42px; font-weight: 760; letter-spacing: -1.5px; line-height: 1; }
.cms-trial-period small { max-width: 160px; color: #e2def5; font-size: 14px; font-weight: 650; line-height: 1.35; letter-spacing: 0; }
.cms-trial-summary p { margin: 12px 0 0; color: #aeb5cf; font-size: 11px; line-height: 1.6; }
.cms-trial-summary strong { color: #d8d4ed; font-weight: 650; }
.cms-trial-remaining { margin-top: 0; }
@keyframes cms-spin { to { transform: rotate(360deg); } }
@keyframes cms-ambient { from { transform: translate3d(-5%, 0, 0) scale(.95); opacity: .65; } to { transform: translate3d(6%, 7%, 0) scale(1.08); opacity: 1; } }
@keyframes cms-hero-aura { 0%, 100% { opacity: .65; transform: scale(.93); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes cms-route-travel { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -100; } }
@keyframes cms-location-float { 0%, 100% { transform: translateY(2px); } 50% { transform: translateY(-6px); } }
@keyframes cms-pin-shadow { 0%, 100% { transform: scale(1); opacity: .8; } 50% { transform: scale(.78); opacity: .45; } }
@keyframes cms-map-ring { 0% { transform: scale(.72); opacity: .6; } 85%, 100% { transform: scale(1.25); opacity: 0; } }
@keyframes cms-orbit-dashes { to { stroke-dashoffset: -120; } }
@keyframes cms-point-pulse { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
@keyframes cms-star-twinkle { 0%, 100% { opacity: .3; scale: .75; } 45%, 60% { opacity: 1; scale: 1.15; } }
@keyframes cms-signal { 0%, 100% { transform: scale(.85); opacity: .55; } 50% { transform: scale(1.12); opacity: 1; } }
@keyframes cms-button-sheen { 0%, 75% { transform: translateX(0) skewX(-12deg); opacity: 0; } 78% { opacity: 1; } 96%, 100% { transform: translateX(440%) skewX(-12deg); opacity: 0; } }
@media (hover: hover) { .cms-plan:not(:disabled):hover { border-color: #9c8ade; } .cms-paywall .cms-legal a:hover, .cms-text-button:hover { color: #ded4ff; } }
@media (min-width: 700px) { .cms-paywall { padding-top: calc(var(--cms-safe-top) + 30px); padding-bottom: calc(var(--cms-safe-bottom) + 30px); } .cms-paywall-panel { padding: 24px 28px 18px; border: 1px solid rgba(152, 165, 231, .2); border-radius: 30px; background: linear-gradient(150deg, rgba(32, 38, 67, .8), rgba(13, 21, 39, .8)); box-shadow: 0 24px 90px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .06); } }
@media (max-width: 350px) { .cms-paywall { padding-left: calc(var(--cms-safe-left) + 14px); padding-right: calc(var(--cms-safe-right) + 14px); } .cms-plan { padding: 13px 12px; gap: 9px; } .cms-plan-name { font-size: 12px; } .cms-plan-amount { font-size: 16px; } .cms-brand { font-size: 17px; } .cms-payment-method { padding: 10px; gap: 6px; font-size: 11px; } .cms-benefits { font-size: 12px; } }
@media (max-height: 700px) and (max-width: 699px) { .cms-illustration { height: 176px; margin-top: 2px; } .cms-intro { margin-bottom: 18px; } .cms-benefits { gap: 10px; margin-bottom: 20px; } }
@media (prefers-reduced-motion: reduce) { .cms-paywall *, .cms-paywall::before, .cms-paywall *::before, .cms-paywall *::after { animation: none !important; transition: none !important; } .cms-paywall .cms-primary::after { display: none; } }
