:root {
    --bg: #07121f;
    --card: #122438;
    --card-light: #1a3047;
    --accent: #40edb2;
    --text: #f3f8ff;
    --muted: #9aafc2;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.app {
    max-width: 480px;
    margin: 0 auto;
    padding: 20px 18px 110px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.logo {
    font-size: 25px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--accent);
}

.version {
    padding: 7px 12px;
    background: var(--card);
    border-radius: 12px;
    font-size: 12px;
}

section {
    border-radius: 22px;
    padding: 24px;
    margin-bottom: 18px;
    background: var(--card);
}

.hero {
    text-align: center;
    background: linear-gradient(145deg, #17394b, #102237 65%, #122438);
    border: 1px solid #285268;
}

.hero-icon {
    font-size: 44px;
    margin-bottom: 12px;
}

h1 {
    font-size: 27px;
    margin: 0 0 12px;
    line-height: 1.2;
}

h2 {
    font-size: 19px;
    margin: 0 0 12px;
}

p {
    color: var(--muted);
    line-height: 1.5;
}

button {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    background: var(--accent);
    color: #06251d;
    margin-top: 14px;
}

button:disabled {
    opacity: 0.85;
    cursor: default;
}

.trial-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 20px 0 8px;
}

.trial-info div {
    background: var(--card-light);
    border-radius: 16px;
    padding: 18px;
    text-align: center;
}

.trial-info strong {
    display: block;
    font-size: 34px;
    color: var(--accent);
}

.trial-info span {
    display: block;
    font-size: 11px;
    letter-spacing: 1px;
    color: var(--muted);
    margin-top: 6px;
}

.benefits p {
    background: var(--card-light);
    border-radius: 12px;
    padding: 13px;
    margin: 9px 0;
    color: var(--text);
    font-size: 14px;
}

nav {
    position: fixed;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: min(calc(100% - 24px), 456px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 4px;
    padding: 16px 8px;
    background: #15283d;
    border: 1px solid #294056;
    border-radius: 20px;
    box-shadow: 0 8px 30px #0008;
}

nav span {
    font-size: 12px;
    color: var(--muted);
    white-space: nowrap;
}

nav span.active {
    color: var(--accent);
    font-weight: 700;
}

.footnote {
    font-size: 11px;
    text-align: center;
    margin-top: 18px;
}

@media (max-width: 360px) {
    .app {
        padding-left: 12px;
        padding-right: 12px;
    }

    section {
        padding: 19px;
    }

    nav span {
        font-size: 10px;
    }
}

/* Нижняя навигация VEYRO Mini App */
nav {
    padding: 8px;
    gap: 5px;
}

nav .nav-button {
    flex: 1;
    min-width: 0;
    width: auto;
    margin: 0;
    padding: 13px 3px;
    border-radius: 14px;
    background: transparent;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}

nav .nav-button.active {
    background: #205044;
    color: var(--accent);
}

nav .nav-button:active {
    transform: scale(0.96);
}


/* VEYRO — Premium Neon brand */

.veyro-brand {
    display: flex;
    align-items: center;
    gap: 9px;
}

.veyro-brand-icon {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    overflow: visible;
    filter: drop-shadow(0 0 5px #25ffe088);
}

.veyro-brand-name {
    white-space: nowrap;
    letter-spacing: 1.5px;
    font-weight: 900;
}

.veyro-brand-name em {
    font-style: normal;
    color: #27f5ae;
}


/* VEYRO — compact horizontal brand header */

.app > header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    min-height: 48px;
}

.app > header .veyro-brand {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 8px;
    width: auto;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.app > header .veyro-brand-icon {
    display: block;
    width: 32px;
    height: 32px;
    min-width: 32px;
    max-width: 32px;
    flex: 0 0 32px;
}

.app > header .veyro-brand-name {
    display: inline-block;
    width: auto;
    font-size: 21px;
    line-height: 1;
    white-space: nowrap;
    letter-spacing: 1px;
}


/* VEYRO — centered compact brand */

.app > header {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100%;
    min-height: 0;
    padding: 8px 0 12px;
}

.app > header .veyro-brand {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.app > header .veyro-brand-icon {
    display: block;
    width: 56px !important;
    height: 56px !important;
    min-width: 0 !important;
    max-width: 56px !important;
    flex: 0 0 56px !important;
}

.app > header .veyro-brand-name {
    display: block;
    width: auto;
    font-size: 19px !important;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
}



/* VEYRO — left brand and centered V-Orbit */

.app > header {
    justify-content: flex-start !important;
    padding: 10px 12px 8px;
}

.app > header .veyro-brand {
    width: auto !important;
    margin: 0 !important;
    align-items: flex-start !important;
}

.app > header .veyro-brand-name {
    font-size: 22px !important;
    text-align: left;
}

.veyro-orbit-banner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2px 0 8px;
}

.veyro-orbit-banner img {
    display: block;
    width: 190px;
    max-width: 55%;
    height: auto;
    object-fit: contain;
}



/* VEYRO ORBIT GLOBAL BACKGROUND V1 */

body {
    background-color: #06111f !important;
    background-image:
        linear-gradient(
            rgba(6, 17, 31, 0.84),
            rgba(6, 17, 31, 0.84)
        ),
        url("veyro-v-orbit.png") !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-size: 100% 100%, min(75vw, 350px) auto !important;
    background-attachment: fixed !important;
}

.veyro-orbit-banner {
    display: none !important;
}

.app > header {
    justify-content: flex-start !important;
    padding: 8px 12px 6px !important;
}

.app > header .veyro-brand {
    width: auto !important;
    margin: 0 !important;
    align-items: flex-start !important;
}

.app > header .veyro-brand-name {
    text-align: left !important;
}


/* VEYRO — lower header position */
.app > header {
    padding-top: 70px !important;
}


/* VEYRO — lower title without moving dashboard */
.app > header .veyro-brand-name {
    position: relative !important;
    top: 100px !important;
    z-index: 5;
}


/* VEYRO — restore title above dashboard */
.app > header .veyro-brand-name {
    top: 0 !important;
}



/* VEYRO — compact header icon */
.app > header .veyro-brand {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 7px !important;
}

.app > header .veyro-header-icon {
    display: block !important;
    width: 28px !important;
    height: 28px !important;
    object-fit: cover;
    flex-shrink: 0;
    mix-blend-mode: screen;
}

.app > header .veyro-brand-name {
    position: static !important;
    font-size: 22px !important;
    line-height: 28px !important;
    white-space: nowrap;
}



/* VEYRO — Telegram fullscreen safe areas */
:root {
    --veyro-bottom-safe: max(
        env(safe-area-inset-bottom, 0px),
        var(--tg-safe-area-inset-bottom, 0px),
        var(--tg-content-safe-area-inset-bottom, 0px)
    );
}

.app {
    padding-bottom: calc(110px + var(--veyro-bottom-safe));
}

nav {
    bottom: calc(12px + var(--veyro-bottom-safe));
    z-index: 100;
}


/* VEYRO — final centered header 20261108 */
.app > header {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    padding: 8px 0 12px !important;
    margin-bottom: 12px !important;
}

.app > header .veyro-brand {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 9px !important;
    width: 100% !important;
    margin: 0 auto !important;
    text-align: center !important;
}

.app > header .veyro-header-icon {
    display: block !important;
    width: 38px !important;
    height: 38px !important;
    object-fit: contain !important;
    flex: 0 0 38px !important;
}

.app > header .veyro-brand-name {
    display: inline-block !important;
    width: auto !important;
    font-size: 22px !important;
    line-height: 1.2 !important;
    text-align: center !important;
    white-space: nowrap !important;
}


/* VEYRO — fullscreen header alignment v2 */
.app {
    padding-top: 0 !important;
}

.app > header {
    position: relative !important;
    padding: 0 !important;
    margin: 0 !important;
    min-height: 0 !important;
    height: 0 !important;
    z-index: 20;
}

.app > header .veyro-brand {
    position: absolute !important;
    top: calc(64px + var(--tg-safe-area-inset-top, 0px)) !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    width: max-content !important;
    max-width: 60vw !important;
    gap: 7px !important;
    margin: 0 !important;
}

.app > header .veyro-header-icon {
    width: 27px !important;
    height: 27px !important;
    flex: 0 0 27px !important;
}

.app > header .veyro-brand-name {
    position: static !important;
    font-size: 18px !important;
    line-height: 27px !important;
    text-align: center !important;
}

.app > main {
    padding-top: calc(105px + var(--tg-safe-area-inset-top, 0px)) !important;
}


/* VEYRO MOBILE LAYOUT V3 */
html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

.app {
    width: 100% !important;
    max-width: 480px !important;
    margin-inline: auto !important;
    padding: 0 12px calc(100px + var(--veyro-bottom-safe, 0px)) !important;
}

.app > header {
    position: relative !important;
    height: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

.app > header .veyro-brand {
    position: absolute !important;
    top: calc(65px + var(--tg-safe-area-inset-top, 0px)) !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    width: max-content !important;
    max-width: 58vw !important;
    margin: 0 !important;
    white-space: nowrap !important;
}

.app > header .veyro-header-icon {
    width: 24px !important;
    height: 24px !important;
    flex: 0 0 24px !important;
    object-fit: contain !important;
}

.app > header .veyro-brand-name {
    position: static !important;
    font-size: 17px !important;
    line-height: 24px !important;
}

.app > main {
    width: 100% !important;
    min-width: 0 !important;
    padding-top: calc(110px + var(--tg-safe-area-inset-top, 0px)) !important;
}

nav {
    width: min(calc(100% - 24px), 456px) !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    bottom: calc(10px + var(--veyro-bottom-safe, 0px)) !important;
    z-index: 100 !important;
}

@media (max-width: 390px) {
    .app {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    nav {
        width: calc(100% - 20px) !important;
    }
}


/* VEYRO FIXED VIEWPORT V4 */
html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden !important;
    overscroll-behavior: none;
}

body {
    position: fixed;
    inset: 0;
}

.app {
    width: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
    min-height: 0 !important;
    max-height: 100dvh !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 0 12px !important;
}

.app > main {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: auto !important;
    overflow: hidden !important;
    padding-top: calc(110px + var(--tg-safe-area-inset-top, 0px)) !important;
    padding-bottom: 0 !important;
}

nav {
    position: fixed !important;
    bottom: calc(10px + var(--veyro-bottom-safe, 0px)) !important;
    z-index: 1000 !important;
}


/* VEYRO FULL HEIGHT DASHBOARD V5 */
.app {
    display: flex !important;
    flex-direction: column !important;
    height: 100dvh !important;
    min-height: 0 !important;
}

.app > main {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

