:root {
    
    --app-teal: #20a483;
    --app-teal-dark: #188a75;
    --app-teal-soft: #e9f6f3;
    --app-orange: #d4a017;
    --app-orange-hot: #efa01a;
    --app-orange-border: #e7a53e;

    
    --app-bg: #f5f6f8;
    --app-surface: #ffffff;
    --app-segment: #e8eaed;

    
    --app-text: #2c2c2c;
    --app-text-strong: #1a1a1a;
    --app-muted: #9a9a9a;
    --app-label: #3a3a3a;
    --app-nav: #6f6f6f;
    --app-danger: #c62828;

    
    --app-lang-bg: #e9f4f2;
    --app-lang-text: #1a9c8a;
    --app-border: #ececec;
    --app-divider: #efefef;

    
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --nav-height: 72px;
    --side: 18px;
    --radius-sm: 10px;
    --radius-md: 12px;
    --radius-lg: 14px;
    --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.06);

    
    --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --dur-fast: 160ms;
    --dur-med: 240ms;
    --dur-slow: 320ms;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html,
body {
    height: 100%;
}

body {
    font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #d8dde3;
    color: var(--app-text);
    overflow: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input {
    font: inherit;
    border: none;
    background: none;
    outline: none;
}

button {
    cursor: pointer;
}

.app {
    position: relative;
    width: 100%;
    max-width: 430px;
    height: 100%;
    max-height: 100dvh;
    margin: 0 auto;
    background: var(--app-bg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.12);
    container-type: inline-size;
    container-name: phone;
}


.ui-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 50px;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.15px;
    transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
    user-select: none;
}

.ui-btn:active {
    transform: scale(0.985);
    opacity: 0.92;
}

.ui-btn-primary {
    background: var(--app-teal);
    color: #fff;
}

.ui-btn-primary:hover {
    background: var(--app-teal-dark);
}

.ui-btn-outline {
    background: var(--app-surface);
    color: var(--app-orange-hot);
    border: 1.5px solid var(--app-orange-border);
}

.ui-btn-ghost {
    background: var(--app-surface);
    color: var(--app-orange);
    box-shadow: var(--shadow-card);
    height: 48px;
    font-size: 15px;
    font-weight: 600;
}

.ui-btn.is-disabled,
.ui-btn:disabled {
    opacity: 0.55;
    pointer-events: none;
}


.page-enter,
.ui-page-enter {
    animation: uiFadeUp var(--dur-slow) var(--ease-out) both;
}

@keyframes uiFadeUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 480px) {
    body {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 24px;
        background:
            radial-gradient(ellipse at 30% 20%, #eef2f5 0%, transparent 50%),
            radial-gradient(ellipse at 70% 80%, #e4eaef 0%, transparent 45%),
            #cfd6dd;
    }

    .app {
        height: min(860px, 100dvh - 48px);
        border-radius: 28px;
        overflow: hidden;
    }
}

@media (max-width: 360px) {
    :root {
        --side: 14px;
    }
}
