:root {
    --color-primary: #163b74;
    --color-primary-light: #2457a7;
    --color-background: #f5f7fa;
    --color-card: #ffffff;
    --color-border: #e5e7eb;
    --color-text: #172033;
    --color-muted: #7a8495;
    --color-success: #3cb371;
    --color-danger: #e74c3c;
    --color-warning: #f59e0b;

    --radius-small: 12px;
    --radius-medium: 18px;
    --radius-large: 24px;

    --shadow-card: 0 10px 30px rgba(22, 59, 116, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    background: var(--color-background);
}

body {
    margin: 0;
    min-height: 100vh;
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;
    color: var(--color-text);
    background:
        linear-gradient(
            180deg,
            #eef3fb 0,
            var(--color-background) 220px
        );
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

.app-shell {
    width: 100%;
    max-width: 520px;
    min-height: 100vh;
    margin: 0 auto;
    background: var(--color-background);
}

.app-header {
    position: relative;
    overflow: hidden;
    padding:
        max(24px, env(safe-area-inset-top))
        22px
        30px;
    color: white;
    background:
        linear-gradient(
            145deg,
            var(--color-primary) 0%,
            var(--color-primary-light) 100%
        );
    border-radius: 0 0 32px 32px;
}

.app-header::after {
    content: "";
    position: absolute;
    right: -55px;
    top: -45px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.header-row {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand-block {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-icon {
    width: 58px;
    height: 58px;
    flex: 0 0 auto;
    border-radius: 17px;
    object-fit: cover;
    background: white;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.brand-title {
    margin: 0;
    font-size: 24px;
    line-height: 1.1;
    font-weight: 750;
}

.brand-subtitle {
    margin: 6px 0 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.78);
}

.status-badge {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 24px;
    padding: 9px 13px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #75e3a4;
    box-shadow: 0 0 0 5px rgba(117, 227, 164, 0.14);
}

.app-content {
    padding: 24px 18px 40px;
}

.section-heading {
    margin: 0 4px 16px;
}

.section-title {
    margin: 0;
    font-size: 21px;
    font-weight: 750;
}

.section-description {
    margin: 7px 0 0;
    color: var(--color-muted);
    font-size: 14px;
    line-height: 1.45;
}

.menu-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.menu-card {
    display: flex;
    align-items: center;
    gap: 15px;
    min-height: 90px;
    padding: 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-medium);
    background: var(--color-card);
    box-shadow: var(--shadow-card);
    transition:
        transform 0.16s ease,
        box-shadow 0.16s ease;
}

.menu-card:active {
    transform: scale(0.985);
    box-shadow: 0 5px 18px rgba(22, 59, 116, 0.08);
}

.menu-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    flex: 0 0 auto;
    border-radius: 16px;
    font-size: 25px;
    background: #edf3fd;
}

.menu-text {
    min-width: 0;
    flex: 1;
}

.menu-title {
    margin: 0;
    font-size: 16px;
    font-weight: 720;
}

.menu-description {
    margin: 5px 0 0;
    color: var(--color-muted);
    font-size: 13px;
    line-height: 1.35;
}

.menu-arrow {
    color: #9aa5b5;
    font-size: 22px;
}

.app-footer {
    padding: 12px 20px calc(24px + env(safe-area-inset-bottom));
    text-align: center;
    color: var(--color-muted);
    font-size: 12px;
}

@media (min-width: 760px) {
    body {
        padding: 30px 0;
    }

    .app-shell {
        min-height: auto;
        overflow: hidden;
        border-radius: 32px;
        box-shadow: 0 25px 80px rgba(22, 59, 116, 0.15);
    }

    .menu-grid {
        grid-template-columns: 1fr 1fr;
    }
}