/* App page header — model hero (Ementa) */
app-page-header { display: block; }

.aph {
    margin: 0 0 12px;
    padding: 0;
}

.aph-card {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 92% 8%, rgba(20, 184, 166, 0.12), transparent 36%),
        linear-gradient(160deg, #ffffff 0%, #f3faf8 48%, #e4f7f3 100%);
    border-radius: 18px;
    padding: 16px 16px 20px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
    animation: aph-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Full-width sea waves */
.aph-decor {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 56px;
    pointer-events: none;
    overflow: hidden;
}

.aph-wave-track {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
}

.aph-wave {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 200%;
    height: 100%;
    display: block;
    will-change: transform;
}

.aph-wave--a { animation: aph-sea-a 10s ease-in-out infinite; }
.aph-wave--b { animation: aph-sea-b 14s ease-in-out infinite; }

.aph-grid {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.aph-main {
    flex: 1;
    min-width: 0;
}

.aph-title-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
    animation: aph-in 0.55s 0.04s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.aph-back {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    margin-top: 2px;
    border: 1px solid #e7edf2;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.92);
    color: #5b6b7c;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    padding: 0;
    transition: transform 0.15s ease, background 0.15s ease;
}

.aph-back:active { transform: scale(0.96); background: #f4f6f8; }

.aph-copy {
    flex: 1;
    min-width: 0;
}

.aph-title {
    font-size: 28px;
    font-weight: 800;
    color: #1a2744;
    letter-spacing: -0.035em;
    line-height: 1.1;
    margin: 0;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.aph-sub {
    margin: 5px 0 0;
    font-size: 12px;
    font-weight: 400;
    color: #8a96a3;
    line-height: 1.4;
    max-width: 22em;
    animation: aph-in 0.55s 0.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.aph-sub-accent {
    color: #14b8a6;
    font-weight: 700;
}

.aph-aside {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.aph-stat {
    background: #fff;
    border-radius: 14px;
    padding: 8px 10px 7px;
    box-shadow: 0 5px 14px rgba(15, 23, 42, 0.07);
    border: 1px solid #eef2f6;
    min-width: 72px;
    animation: aph-pop 0.6s 0.12s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.aph-stat-main {
    display: flex;
    align-items: center;
    gap: 6px;
}

.aph-stat-main i {
    font-size: 14px;
    color: #14b8a6;
}

.aph-stat-value {
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
    color: #1a2744;
}

.aph-stat-label {
    margin-top: 2px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #9aa6b2;
}

.aph-card--nostat .aph-aside { display: none; }

/* Fixed header + scrollable list, same horizontal frame */
.cz-menu-page .page_wrapper.cz-menu-frame {
    margin: 0 !important;
    padding: 12px 12px 0 !important;
    box-sizing: border-box;
}

.cz-menu-page .cz-menu-scroll {
    margin: 0 !important;
    padding: 0 0 28px !important;
    box-sizing: border-box;
}

.cz-menu-page .cz-list {
    margin: 0 0 10px !important;
}

.cz-menu-page .cz-list .cz-row {
    opacity: 0;
    animation: aph-row-in 0.52s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.cz-menu-page .cz-list .cz-row:nth-child(1) { animation-delay: 0.18s; }
.cz-menu-page .cz-list .cz-row:nth-child(2) { animation-delay: 0.24s; }
.cz-menu-page .cz-list .cz-row:nth-child(3) { animation-delay: 0.3s; }
.cz-menu-page .cz-list .cz-row:nth-child(4) { animation-delay: 0.36s; }
.cz-menu-page .cz-list .cz-row:nth-child(5) { animation-delay: 0.42s; }
.cz-menu-page .cz-list .cz-row:nth-child(6) { animation-delay: 0.48s; }
.cz-menu-page .cz-list .cz-row:nth-child(7) { animation-delay: 0.54s; }
.cz-menu-page .cz-list .cz-row:nth-child(8) { animation-delay: 0.6s; }
.cz-menu-page .cz-list .cz-row:nth-child(9) { animation-delay: 0.66s; }
.cz-menu-page .cz-list .cz-row:nth-child(10) { animation-delay: 0.72s; }
.cz-menu-page .cz-list .cz-row:nth-child(11) { animation-delay: 0.78s; }
.cz-menu-page .cz-list .cz-row:nth-child(12) { animation-delay: 0.84s; }
.cz-menu-page .cz-list .cz-row:nth-child(n+13) { animation-delay: 0.9s; }

.cz-menu-page .cz-row {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cz-menu-page .cz-row:active {
    transform: scale(0.985);
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
}

@keyframes aph-in {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes aph-pop {
    from { opacity: 0; transform: translateY(12px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes aph-row-in {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes aph-sea-a {
    0%, 100% { transform: translate3d(0, 2px, 0); }
    50% { transform: translate3d(-18%, -3px, 0); }
}

@keyframes aph-sea-b {
    0%, 100% { transform: translate3d(-8%, 0, 0); }
    50% { transform: translate3d(-28%, 3px, 0); }
}

@media (min-width: 600px) {
    .cz-menu-page .page_wrapper.cz-menu-frame {
        padding: 14px 16px 0 !important;
    }
    .cz-menu-page .cz-menu-scroll {
        padding: 0 0 32px !important;
    }
    .aph { margin: 0 0 14px; }
    .aph-card { padding: 18px 18px 22px; border-radius: 20px; }
    .aph-title { font-size: 34px; }
    .aph-sub { max-width: 26em; font-size: 13px; }
    .aph-decor { height: 64px; }
    .aph-stat { padding: 10px 12px 9px; min-width: 78px; }
    .aph-stat-value { font-size: 22px; }
}

@media (min-width: 960px) {
    .cz-menu-page .page_wrapper.cz-menu-frame {
        padding: 16px 20px 0 !important;
    }
    .cz-menu-page .cz-menu-scroll {
        padding: 0 0 36px !important;
    }
    .aph { margin: 0 0 16px; }
    .aph-card { padding: 20px 22px 24px; border-radius: 22px; }
    .aph-title { font-size: 38px; }
    .aph-sub { font-size: 14px; }
    .aph-decor { height: 72px; }
}

@media (prefers-reduced-motion: reduce) {
    .aph-card,
    .aph-title-row,
    .aph-sub,
    .aph-stat,
    .aph-wave,
    .cz-menu-page .cz-list .cz-row {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}
