:root {
    --bg: #070709;
    --panel: #121216;
    --panel-soft: #19191e;
    --text: #f7f7f8;
    --muted: #96969f;
    --line: rgba(255, 255, 255, .09);
    --blue: #0a84ff;
    --green: #25d366;
    --green-dark: #0d7f3d;
    --nav: rgba(18, 18, 22, .84);
    --grid-gap: 2px;
}

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

html { min-height: 100%; background: var(--bg); }

body {
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    overscroll-behavior-y: none;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
    line-height: 1.5;
}

button, input { font: inherit; }
button { color: inherit; }

.app-header {
    position: fixed;
    z-index: 100;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(52px + env(safe-area-inset-top));
    padding: env(safe-area-inset-top) 16px 0;
    display: grid;
    grid-template-columns: 88px 1fr 88px;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, .045);
    background: rgba(7, 7, 9, .88);
    -webkit-backdrop-filter: blur(22px) saturate(145%);
    backdrop-filter: blur(22px) saturate(145%);
}

.header-spacer { width: 88px; }

#header-title {
    overflow: hidden;
    font-size: 16px;
    font-weight: 650;
    letter-spacing: -.02em;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-content {
    min-height: calc(100vh - 119px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    min-height: calc(100dvh - 119px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    margin-top: calc(52px + env(safe-area-inset-top));
    margin-bottom: calc(67px + env(safe-area-inset-bottom));
}

.view-section { display: none; animation: fade-in .32s ease both; }
.view-section.active { display: block; }

@keyframes fade-in {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: none; }
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--grid-gap);
}

.photo-item {
    width: 100%;
    display: block;
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    padding: 0;
    border: 0;
    background: #232329;
    cursor: pointer;
    appearance: none;
}

.photo-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .24s ease, opacity .24s ease;
}

.photo-item:active img { transform: scale(.96); opacity: .78; }

.gallery-empty {
    grid-column: 1 / -1;
    min-height: 260px;
    padding: 30px;
    display: grid;
    place-content: center;
    gap: 5px;
    color: var(--muted);
    text-align: center;
}

.gallery-empty strong { color: var(--text); font-size: 14px; }
.gallery-empty span { font-size: 11px; }

.gallery-end-cta {
    width: calc(100% - 32px);
    margin: 20px 16px 12px;
    padding: 24px 20px 19px;
    display: grid;
    justify-items: start;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(65, 231, 127, .18);
    border-radius: 25px;
    background:
        radial-gradient(circle at 90% 5%, rgba(37, 211, 102, .25), transparent 35%),
        linear-gradient(145deg, #12281b, #0c1510 58%, #101113);
    box-shadow: 0 20px 48px rgba(0, 0, 0, .3), inset 0 1px rgba(255, 255, 255, .05);
    color: #fff;
    cursor: pointer;
    text-align: left;
}

.gallery-end-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(145deg, #2bd96c, #159c48);
    box-shadow: 0 13px 30px rgba(37, 211, 102, .2), inset 0 1px rgba(255, 255, 255, .28);
    font-size: 27px;
}

.gallery-end-copy { margin-top: 20px; display: grid; }
.gallery-end-copy small { color: #6fda95; font-size: 9px; font-weight: 780; letter-spacing: .13em; text-transform: uppercase; }
.gallery-end-copy strong { margin-top: 8px; max-width: 310px; font-size: 27px; font-weight: 730; letter-spacing: -.05em; line-height: 1.03; }
.gallery-end-copy > span { max-width: 340px; margin-top: 10px; color: #aeb7b1; font-size: 12px; line-height: 1.55; }

.gallery-end-action {
    width: 100%;
    min-height: 48px;
    margin-top: 20px;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 15px;
    background: #f6f7f6;
    color: #07150c;
    font-size: 12px;
    font-weight: 720;
}

.gallery-end-action i { font-size: 11px; }
.gallery-end-cta:active { transform: scale(.992); }

.gallery-update-note {
    width: calc(100% - 32px);
    margin: 0 16px 32px;
    padding: 14px 15px;
    display: grid;
    grid-template-columns: 36px 1fr;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 17px;
    background: rgba(255, 255, 255, .035);
}

.gallery-update-note > span {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(10, 132, 255, .11);
    color: #62aaf8;
    font-size: 13px;
}

.gallery-update-note strong { display: block; color: #d7d7dc; font-size: 11px; font-weight: 680; }
.gallery-update-note p { margin-top: 3px; color: #777780; font-size: 10px; line-height: 1.45; }

.collections-intro { padding: 34px 18px 8px; }

.collections-kicker {
    width: fit-content;
    padding: 6px 10px;
    display: inline-flex;
    gap: 6px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 99px;
    background: rgba(255, 255, 255, .045);
    color: #b9b9c1;
    font-size: 9px;
    font-weight: 750;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.collections-kicker i { color: #c5a45c; font-size: 8px; }

.collections-intro h2 {
    margin-top: 14px;
    max-width: 390px;
    font-size: clamp(36px, 11vw, 50px);
    font-weight: 720;
    letter-spacing: -.065em;
    line-height: .98;
}

.collections-intro p {
    max-width: 430px;
    margin-top: 14px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.albums-container {
    padding: 20px 16px 26px;
    display: grid;
    gap: 18px;
}

.album-card {
    width: 100%;
    display: block;
    border: 0;
    background: none;
    cursor: pointer;
    text-align: left;
}

.album-cover {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--panel);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .28), inset 0 1px rgba(255, 255, 255, .04);
}

.album-cover img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center 35%;
    transition: transform .35s ease;
}

.album-card:active .album-cover { transform: scale(.992); }
.album-card:active .album-cover img { transform: scale(1.025); }

.album-cover::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 38%;
    background: linear-gradient(transparent, rgba(0, 0, 0, .55));
    pointer-events: none;
}

.album-count {
    position: absolute;
    z-index: 2;
    bottom: 12px;
    left: 14px;
    padding: 5px 8px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 99px;
    background: rgba(0, 0, 0, .42);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    color: #fff;
    font-size: 10px;
    font-weight: 650;
}

.album-info {
    padding: 11px 4px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.album-info h3 { font-size: 16px; font-weight: 650; letter-spacing: -.02em; }
.album-info span { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }
.album-info > i { color: #62626b; font-size: 11px; }

.zap-cover {
    min-height: 188px;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 70% 10%, rgba(67, 255, 139, .23), transparent 35%),
        linear-gradient(145deg, #10251a, #0c1510 52%, #101114);
}

.zap-cover::after { height: 45%; background: linear-gradient(transparent, rgba(4, 11, 7, .55)); }

.zap-glow {
    position: absolute;
    width: 210px;
    height: 210px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 211, 102, .28), transparent 68%);
    filter: blur(2px);
}

.zap-symbol {
    position: relative;
    z-index: 2;
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 25px;
    background: linear-gradient(145deg, rgba(37, 211, 102, .98), rgba(18, 142, 67, .95));
    box-shadow: 0 20px 48px rgba(37, 211, 102, .24), inset 0 1px rgba(255, 255, 255, .28);
    color: #fff;
    font-size: 43px;
    transform: rotate(-2deg);
}

.offer-chip {
    position: absolute;
    z-index: 3;
    top: 13px;
    right: 13px;
    padding: 6px 9px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 99px;
    background: rgba(4, 9, 6, .5);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    color: rgba(255, 255, 255, .78);
    font-size: 8px;
    font-weight: 720;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.app-nav {
    position: fixed;
    z-index: 100;
    bottom: 0;
    left: 0;
    width: 100%;
    height: calc(67px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    display: flex;
    align-items: center;
    justify-content: space-around;
    border-top: 1px solid var(--line);
    background: var(--nav);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    backdrop-filter: blur(24px) saturate(150%);
}

.floating-zap-btn {
    position: fixed;
    z-index: 120;
    right: 15px;
    bottom: calc(82px + env(safe-area-inset-bottom));
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 19px;
    background: linear-gradient(145deg, #2bd96c, #159c48);
    box-shadow: 0 14px 38px rgba(0, 0, 0, .46), 0 8px 24px rgba(37, 211, 102, .24), inset 0 1px rgba(255, 255, 255, .3);
    color: #fff;
    cursor: pointer;
    font-size: 31px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px) scale(.9);
    transition: opacity .28s ease, transform .35s cubic-bezier(.2, .8, .2, 1), visibility .28s;
}

.floating-zap-btn.is-available { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
.floating-zap-btn.is-available.is-suppressed { opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(8px) scale(.94); }

.floating-zap-btn::before {
    content: "";
    position: absolute;
    inset: -5px;
    z-index: -1;
    border: 1px solid rgba(37, 211, 102, .26);
    border-radius: 23px;
    animation: zap-pulse 2.4s ease-out infinite;
}

.floating-zap-label {
    position: absolute;
    right: 66px;
    width: max-content;
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 10px;
    background: rgba(12, 12, 14, .88);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    color: #d9d9dd;
    font-size: 9px;
    font-weight: 650;
    opacity: 1;
    transform: none;
    transition: opacity .22s ease, transform .22s ease;
}

.floating-zap-btn.is-compact .floating-zap-label { opacity: 0; pointer-events: none; transform: translateX(6px); }

@keyframes zap-pulse {
    0%, 55% { opacity: .8; transform: scale(.92); }
    100% { opacity: 0; transform: scale(1.18); }
}

.nav-item {
    width: 92px;
    min-height: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 580;
    text-decoration: none;
}

.nav-item i { font-size: 21px; }
.nav-item.active { color: var(--blue); }

.lightbox {
    position: fixed;
    z-index: 200;
    inset: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    display: none;
    flex-direction: column;
    background: #000;
}

.lightbox.active { display: flex; animation: fade-in .25s ease both; }

.lightbox-header {
    height: calc(54px + env(safe-area-inset-top));
    padding: env(safe-area-inset-top) 15px 0;
    display: grid;
    grid-template-columns: 82px 1fr 82px;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.lightbox-close { color: #fff; font-size: 14px; text-decoration: none; }
.lightbox-close i { margin-right: 3px; font-size: 11px; }
.lightbox-meta { font-size: 13px; font-weight: 630; text-align: center; }
.lightbox-counter { color: var(--muted); font-size: 10px; text-align: right; }

.lightbox-content {
    position: relative;
    min-height: 0;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000;
    touch-action: pan-y;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transform: translateZ(0);
    will-change: transform;
    user-select: none;
    -webkit-user-select: none;
}

.lightbox-arrow {
    position: absolute;
    z-index: 4;
    top: 50%;
    width: 42px;
    height: 52px;
    display: none;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 15px;
    background: rgba(15, 15, 17, .62);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    color: #fff;
    cursor: pointer;
    font-size: 13px;
    transform: translateY(-50%);
    transition: opacity .18s ease, background .18s ease, transform .18s ease;
}

.lightbox-arrow-prev { left: 14px; }
.lightbox-arrow-next { right: 14px; }
.lightbox-arrow:hover { background: rgba(35, 35, 39, .8); }
.lightbox-arrow:active { transform: translateY(-50%) scale(.94); }
.lightbox-arrow:disabled { opacity: 0; pointer-events: none; }

.lightbox-zap-slide {
    width: min(calc(100% - 36px), 390px);
    padding: 30px 24px 24px;
    border: 1px solid rgba(65, 231, 127, .18);
    border-radius: 28px;
    background:
        radial-gradient(circle at 72% 0, rgba(37, 211, 102, .23), transparent 34%),
        linear-gradient(145deg, #12281b, #0c1510 58%, #101113);
    box-shadow: 0 26px 70px rgba(0, 0, 0, .5);
    text-align: center;
}

.lightbox-zap-slide[hidden] { display: none; }
.lightbox-zap-icon { width: 58px; height: 58px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 19px; background: linear-gradient(145deg, #2bd96c, #159c48); box-shadow: 0 16px 34px rgba(37, 211, 102, .2); font-size: 33px; }
.lightbox-zap-slide > p { color: #6fda95; font-size: 8px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.lightbox-zap-slide h2 { margin-top: 9px; font-size: 34px; font-weight: 730; letter-spacing: -.06em; line-height: .98; }
.lightbox-zap-slide > span:not(.lightbox-zap-icon) { display: block; max-width: 300px; margin: 13px auto 0; color: #aeb7b1; font-size: 12px; line-height: 1.55; }
.lightbox-zap-slide button { width: 100%; min-height: 52px; margin-top: 22px; border: 0; border-radius: 16px; background: linear-gradient(135deg, #2bda6d, #18a84f); color: #041d0d; cursor: pointer; font-size: 13px; font-weight: 720; }
.lightbox-zap-slide button i { margin-right: 7px; font-size: 17px; }

.lightbox-footer {
    height: calc(50px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    display: grid;
    place-items: center;
    border-top: 1px solid rgba(255, 255, 255, .06);
    color: #777780;
    font-size: 9px;
    letter-spacing: .02em;
}

.lightbox-footer span { display: flex; align-items: center; gap: 9px; }
.lightbox-footer i { font-size: 8px; }

.modal-overlay {
    position: fixed;
    z-index: 300;
    inset: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    padding: 18px;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .68);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.modal-overlay.active { display: flex; animation: modal-fade .24s ease both; }

@keyframes modal-fade { from { opacity: 0; } to { opacity: 1; } }

.modal-content {
    position: relative;
    width: min(100%, 380px);
    max-height: calc(100dvh - 36px);
    overflow: auto;
    padding: 26px 22px 0;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 28px;
    background:
        radial-gradient(circle at 50% -10%, rgba(37, 211, 102, .16), transparent 34%),
        rgba(22, 22, 26, .97);
    box-shadow: 0 30px 90px rgba(0, 0, 0, .58);
    text-align: center;
    transform: translateY(10px) scale(.97);
    animation: modal-up .36s cubic-bezier(.2, .8, .2, 1) forwards;
}

@keyframes modal-up { to { transform: none; } }

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(255, 255, 255, .055);
    color: #aaaab2;
    cursor: pointer;
    font-size: 20px;
}

.modal-zap-icon {
    width: 62px;
    height: 62px;
    margin: 2px auto 16px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    background: linear-gradient(145deg, var(--green), var(--green-dark));
    box-shadow: 0 16px 38px rgba(37, 211, 102, .2);
    font-size: 35px;
}

.modal-eyebrow {
    color: #67df93;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.modal-title {
    max-width: 310px;
    margin: 9px auto 0;
    font-size: 27px;
    font-weight: 720;
    letter-spacing: -.05em;
    line-height: 1.05;
}

.modal-text {
    max-width: 310px;
    margin: 13px auto 20px;
    color: #a7a7b0;
    font-size: 12px;
    line-height: 1.58;
}

.modal-price-section {
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    border: 1px solid rgba(37, 211, 102, .16);
    border-radius: 19px;
    background: rgba(37, 211, 102, .055);
}

.modal-price-badge {
    color: #75dc9a;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.modal-price-value { display: flex; align-items: baseline; gap: 4px; }
.modal-price-currency { color: #c9cad0; font-size: 15px; font-weight: 650; }
.modal-price-amount { font-size: 38px; font-weight: 760; letter-spacing: -.055em; line-height: 1.05; }
.modal-price-subtitle { color: #85858f; font-size: 9px; }

.modal-actions {
    margin: 18px -22px 0;
    padding: 14px 18px 18px;
    display: grid;
    gap: 8px;
    border-top: 1px solid var(--line);
}

.modal-actions button {
    min-height: 52px;
    border: 0;
    border-radius: 15px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 680;
}

.btn-unlock {
    background: linear-gradient(135deg, #2bda6d, #18a84f);
    box-shadow: 0 13px 28px rgba(37, 211, 102, .17);
    color: #041d0d;
}

.btn-unlock i { margin-right: 7px; font-size: 16px; }
.btn-cancel { background: transparent; color: #8f8f98; }
.modal-actions button:active { transform: scale(.985); }

.login-overlay {
    position: fixed;
    z-index: 9999;
    inset: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    padding: 22px;
    display: none;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 50% 25%, rgba(67, 67, 76, .28), transparent 28rem),
        #070709;
}

.login-overlay.active { display: flex; }

.login-content {
    width: min(100%, 350px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    animation: fade-in .42s ease both;
}

.login-icon {
    position: relative;
    width: 82px;
    height: 82px;
    margin-bottom: 24px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 27px;
    background: linear-gradient(145deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .025));
    box-shadow: 0 25px 60px rgba(0, 0, 0, .42), inset 0 1px rgba(255, 255, 255, .1);
    font-size: 28px;
}

.login-icon-orbit {
    position: absolute;
    inset: -9px;
    border: 1px solid rgba(255, 255, 255, .045);
    border-radius: 32px;
    transform: rotate(8deg);
}

.login-eyebrow {
    color: #c6a55e;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.login-title {
    margin-top: 10px;
    font-size: 30px;
    font-weight: 720;
    letter-spacing: -.055em;
    line-height: 1.04;
}

.login-subtitle { margin-top: 10px; color: var(--muted); font-size: 13px; }

.access-loader { height: 42px; margin-top: 24px; display: flex; align-items: center; justify-content: center; gap: 7px; }
.access-loader span { width: 7px; height: 7px; border-radius: 50%; background: #c6a55e; animation: access-pulse 1.1s ease-in-out infinite; }
.access-loader span:nth-child(2) { animation-delay: .14s; }
.access-loader span:nth-child(3) { animation-delay: .28s; }
.access-help { width: 100%; margin-top: 24px; display: grid; gap: 9px; }
.access-help a, .access-help button { width: 100%; min-height: 52px; padding: 0 15px; display: flex; align-items: center; justify-content: center; gap: 9px; border-radius: 16px; font-size: 12px; font-weight: 700; text-decoration: none; }
.access-help a { border: 0; background: linear-gradient(135deg,#833ab4,#fd1d1d 62%,#fcb045); color: #fff; }
.access-help button { border: 1px solid var(--line); background: rgba(255,255,255,.045); color: #b7b7bf; cursor: pointer; }
.login-hint { margin-top: 13px; color: #63636c; font-size: 10px; }

@keyframes access-pulse { 0%,70%,100% { opacity: .3; transform: translateY(0); } 35% { opacity: 1; transform: translateY(-5px); } }

@media (min-width: 600px) {
    html { background: #09090c; }

    body {
        padding: 30px 0;
        background:
            radial-gradient(circle at 50% 8%, rgba(62, 62, 72, .24), transparent 34rem),
            #09090c;
    }

    .app-content {
        width: min(570px, calc(100vw - 32px));
        min-height: calc(100vh - 60px);
        min-height: calc(100dvh - 60px);
        margin: 0 auto;
        padding-top: 52px;
        padding-bottom: 67px;
        overflow: hidden;
        border: 1px solid rgba(255, 255, 255, .07);
        border-top: 0;
        border-bottom: 0;
        background: var(--bg);
        box-shadow: 0 28px 90px rgba(0, 0, 0, .3);
    }

    .app-header, .app-nav, .lightbox {
        left: 50%;
        width: min(570px, calc(100vw - 32px));
        transform: translateX(-50%);
        border-left: 1px solid rgba(255, 255, 255, .07);
        border-right: 1px solid rgba(255, 255, 255, .07);
    }

    .app-header { top: 30px; }
    .app-nav { bottom: 30px; }
    .floating-zap-btn { right: calc((100vw - min(570px, calc(100vw - 32px))) / 2 + 15px); bottom: calc(112px + env(safe-area-inset-bottom)); }
    .lightbox { top: 30px; bottom: 30px; height: auto; }
    .photo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .collections-intro { padding: 38px 26px 10px; }
    .albums-container { padding: 22px 24px 30px; }
    .gallery-end-cta { width: calc(100% - 48px); margin-right: 24px; margin-left: 24px; }
    .gallery-update-note { width: calc(100% - 48px); margin-right: 24px; margin-left: 24px; }
    .lightbox-arrow { display: grid; }
}

@media (min-width: 600px) and (max-height: 700px) {
    body { padding: 0; }
    .app-content { min-height: 100vh; min-height: 100dvh; }
    .app-header { top: 0; }
    .app-nav { bottom: 0; }
    .floating-zap-btn { bottom: calc(82px + env(safe-area-inset-bottom)); }
    .lightbox { top: 0; bottom: 0; }
}

@media (max-height: 620px) {
    .login-icon { width: 66px; height: 66px; margin-bottom: 17px; border-radius: 22px; font-size: 23px; }
    .login-title { font-size: 26px; }
    .login-hint { margin-top: 8px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
