/* Единый верхний бар авторизованного пользователя (id/index.php, id/photos.php) */
.top-bar {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    background: #ffcc00;
    color: #000;
    padding: 0.6rem 1rem;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.4;
}
.top-bar a {
    color: #000;
    text-decoration: none;
}
.top-bar a:hover {
    text-decoration: underline;
}
.top-bar--blue {
    background: #168de2;
    color: #fff;
}
.top-bar--blue a {
    color: #fff;
}
.top-bar__user {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
}
.top-bar__avatar {
    display: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 0.4rem;
    vertical-align: middle;
}
.top-bar__subscription {
    display: none;
}

/* Оверлей оформления подписки */
.subscription-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}
.subscription-overlay--open {
    display: flex;
}
.subscription-overlay__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s ease;
}
.subscription-overlay__close:hover {
    background: rgba(255, 255, 255, 0.3);
}
.subscription-overlay__content {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1.5rem;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}
.subscription-overlay__title {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
}
.subscription-overlay__btn {
    display: block;
    width: 100%;
    padding: 1rem 1.5rem;
    background: #ffcc00;
    color: #000;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    box-sizing: border-box;
    transition: transform .15s ease, box-shadow .15s ease;
}
.subscription-overlay__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.subscription-overlay__btn--accent {
    background: #168de2;
    color: #fff;
}
.subscription-overlay__note {
    margin: 0.5rem 0 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.2rem;
    line-height: 1.4;
}
