body.profile-layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.profile-layout .profile-page {
    flex: 1 0 auto;
    width: 100%;
    padding: 110px 0 48px;
}

body.profile-layout > footer {
    margin-top: auto;
    width: 100%;
}

.profile-container {
    width: min(100%, 980px);
}

.profile-shell {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 34px;
    align-items: start;
}

.profile-sidebar {
    display: grid;
    gap: 4px;
    align-content: start;
    position: sticky;
    top: 96px;
    margin-left: -18px;
}

.profile-sidebar__link {
    display: block;
    padding: 8px 0;
    color: #aabdd9;
    font-size: 16px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.profile-sidebar__link:hover {
    color: #ffffff;
}

.profile-sidebar__link.is-active {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 6px;
    text-decoration-color: #148EFF;
}

.profile-content > h1 {
    margin-bottom: 22px;
}

.profile-empty {
    text-align: left;
    color: #9daecc;
}

.profile-placeholder {
    color: #c4d3e8;
    font-size: 16px;
}

.booking-section {
    display: grid;
    gap: 22px;
}

.booking-balance {
    font-size: 18px;
    color: #dce9ff;
}

.booking-balance > strong {
    color: #ffffff;
    font-size: 20px;
}

.booking-note {
    margin: -12px 0 0;
    color: #c8d7ee;
    font-size: 14px;
    line-height: 1.45;
}

.booking-form {
    display: grid;
    gap: 14px;
}

.booking-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.booking-form__field {
    display: grid;
    gap: 6px;
}

.booking-form__field > span {
    font-size: 13px;
    color: #9eb0ca;
}

.booking-form__field select,
.booking-form__field input {
    width: 100%;
    height: 42px;
    border-radius: 6px;
    border: 1px solid #33445f;
    background: #0f1726;
    padding: 0 12px;
    color: #ffffff;
}

.booking-form__field select:focus,
.booking-form__field input:focus {
    outline: none;
    border-color: #148EFF;
}

.booking-form__field select:disabled,
.booking-form__field input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.booking-form__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.booking-btn {
    height: 42px;
    border-radius: 6px;
    border: 1px solid #4f6d95;
    background: transparent;
    color: #d8e7ff;
    padding: 0 14px;
    cursor: pointer;
}

.booking-btn:hover {
    border-color: #79a7dd;
    color: #ffffff;
}

.booking-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.booking-btn--accent {
    border-color: #75BBFC;
    background: #148EFF;
    color: #ffffff;
}

.booking-btn--accent:hover {
    background: #2a9cff;
}

.booking-message {
    font-size: 14px;
    margin: 0;
}

.booking-message.is-success {
    color: #8ae3af;
}

.booking-message.is-error {
    color: #ff9f9f;
}

.booking-packages {
    display: grid;
    gap: 8px;
}

.booking-package {
    display: block;
    position: relative;
}

.booking-package > input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.booking-package__content {
    display: grid;
    gap: 4px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #33445f;
    background: #0f1726;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.booking-package:hover .booking-package__content {
    border-color: #79a7dd;
}

.booking-package > input:checked + .booking-package__content {
    border-color: #75BBFC;
    background: rgba(20, 142, 255, 0.2);
    box-shadow: 0 0 0 1px rgba(117, 187, 252, 0.4);
}

.booking-package > input:focus-visible + .booking-package__content {
    outline: 2px solid #75BBFC;
    outline-offset: 1px;
}

.booking-package__name {
    font-weight: 600;
    color: #e1eeff;
}

.booking-package__meta {
    color: #9eb0ca;
    font-size: 13px;
}

.booking-list {
    display: grid;
    gap: 10px;
}

.booking-list > h2 {
    font-size: 20px;
}

.booking-list__items {
    display: grid;
    gap: 8px;
}

.booking-list__item {
    display: grid;
    grid-template-columns: minmax(0, 130px) minmax(0, 1fr) auto auto;
    gap: 10px;
    align-items: center;
    padding: 6px 0;
}

.booking-list__station,
.booking-list__time,
.booking-list__status {
    margin: 0;
}

.booking-list__station {
    font-weight: 700;
    color: #dce9ff;
}

.booking-list__time {
    color: #bfd0e8;
}

.booking-list__status {
    font-size: 13px;
}

.booking-list__status.is-planned {
    color: #8ae3af;
}

.booking-list__status.is-arrived {
    color: #8bc2ff;
}

.booking-list__status.is-finished {
    color: #d3dcea;
}

.booking-list__status.is-cancelled {
    color: #ff9f9f;
}

.booking-list__actions {
    display: flex;
    justify-content: flex-end;
}

.booking-btn--small {
    height: 34px;
    padding: 0 10px;
    font-size: 13px;
}

.profile-card {
    width: min(100%, 920px);
    margin: 0 auto;
    display: grid;
    gap: 16px;
    border: none;
    border-radius: 0;
    background: transparent;
    padding: 0;
}

.profile-card__identity {
    display: flex;
    align-items: stretch;
    gap: 14px;
    padding: 0 2px;
}

.profile-card__identity-user {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1 1 auto;
    padding: 0;
    min-width: 0;
}

.profile-card__identity-meta {
    min-width: 0;
}

.profile-card__premium {
    min-width: 170px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid #49546b;
    background: rgba(18, 28, 45, 0.8);
    display: grid;
    gap: 6px;
    align-content: center;
    overflow: hidden;
    position: relative;
    margin-left: auto;
}

.profile-card__premium-tag {
    margin: 0;
    color: #f3d889;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.profile-card__premium-date {
    margin: 0;
    color: #fcecc3;
    font-size: 14px;
    font-weight: 700;
}

.profile-card__premium.is-active {
    border-color: #d2af53;
    background: linear-gradient(135deg, rgba(78, 58, 20, 0.95), rgba(140, 109, 37, 0.96), rgba(77, 58, 22, 0.95));
    box-shadow: 0 0 0 1px rgba(245, 217, 145, 0.3), 0 10px 24px rgba(186, 136, 36, 0.35);
    animation: premiumBreath 2.8s ease-in-out infinite;
}

.profile-card__premium.is-active::after {
    content: "";
    position: absolute;
    top: -35%;
    left: -42%;
    width: 60%;
    height: 170%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 241, 197, 0.5), rgba(255, 255, 255, 0));
    transform: rotate(18deg);
    animation: premiumShine 3.6s linear infinite;
    pointer-events: none;
}

@keyframes premiumBreath {
    0%, 100% {
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.02);
        filter: brightness(1.08);
    }
}

@keyframes premiumShine {
    0% {
        left: -52%;
    }
    100% {
        left: 116%;
    }
}

.profile-card__avatar {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 50%;
    border: none;
    flex-shrink: 0;
}

.profile-card__label {
    color: #9eb0ca;
    font-size: 13px;
    margin: 0;
}

.profile-card__value {
    font-size: 24px;
    font-weight: 700;
    margin-top: 2px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-card__stats {
    margin-top: 4px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 16px;
}

.profile-card__stat {
    display: grid;
    gap: 6px;
    padding: 6px 0;
    border: none;
    border-radius: 0;
    background: transparent;
}

.profile-card__stat-value {
    margin: 0;
    font-weight: 600;
    color: #d9e7ff;
    line-height: 1.35;
    word-break: break-word;
}

@media (max-width: 560px) {
    body.profile-layout .profile-page {
        padding: 90px 0 28px;
    }

    .profile-shell {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .profile-sidebar {
        position: static;
        top: auto;
        display: flex;
        gap: 14px;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 4px;
        margin-left: 0;
    }

    .profile-sidebar__link {
        padding: 6px 0;
        flex: 0 0 auto;
    }

    .profile-content > h1 {
        margin-bottom: 14px;
    }

    .booking-form__grid {
        grid-template-columns: 1fr;
    }

    .booking-list__item {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .profile-card__identity {
        gap: 12px;
        flex-direction: column;
        align-items: stretch;
        padding: 0;
    }

    .profile-card__identity-user {
        gap: 10px;
    }

    .profile-card__premium {
        min-width: 0;
        width: 100%;
        margin-left: 0;
    }

    .profile-card__stats {
        grid-template-columns: 1fr;
    }

    .profile-card__stat-value {
        text-align: left;
    }
}

@media (max-width: 420px) {
    body.profile-layout .profile-page {
        padding: 84px 0 20px;
    }

    .profile-card {
        gap: 12px;
    }

    .profile-card__avatar {
        width: 78px;
        height: 78px;
    }

    .profile-card__value {
        font-size: 20px;
    }

    .profile-card__stat {
        padding: 4px 0;
    }
}
