/* =========================================================
   Noble Shine — Personal Account
========================================================= */

.account-dashboard,
.account-profile-page {
    padding-bottom: 80px;
}


/* =========================================================
   Общие цвета ЛК
========================================================= */

.account-dashboard,
.account-profile-page,
.account-dashboard * ,
.account-profile-page * {
    box-sizing: border-box;
}

.account-dashboard {
    color: #18314f;
}

.account-dashboard a,
.account-profile-page a {
    color: inherit;
}


/* =========================================================
   Dashboard — Welcome
========================================================= */

.account-dashboard__welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;

    margin-bottom: 40px;
    padding: 32px;

    background: #ffffff;
    border: 1px solid #e7edf3;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(15, 37, 63, 0.06);
}

.account-dashboard__label {
    margin-bottom: 8px;

    font-size: 14px;
    line-height: 1.4;
    font-weight: 500;

    color: #7b8a9b;
    opacity: 1;
}

.account-dashboard__name {
    margin: 0;

    font-size: 32px;
    line-height: 1.2;
    font-weight: 600;

    color: #18314f;
}


/* =========================================================
   Info cards
========================================================= */

.account-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;

    margin-bottom: 60px;
}

.account-info-card {
    display: flex;
    flex-direction: column;

    min-height: 320px;
    padding: 32px;

    background: #ffffff;
    border: 1px solid #e7edf3;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(15, 37, 63, 0.06);

    color: #18314f;
}

.account-info-card__title {
    margin-bottom: 28px;

    font-size: 28px;
    line-height: 1.2;
    font-weight: 600;

    color: #18314f;
}

.account-info-card__content {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.account-info-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;

    padding: 18px 0;

    border-bottom: 1px solid #edf2f6;
}

.account-info-row:first-child {
    padding-top: 0;
}

.account-info-row:last-child {
    border-bottom: 0;
}

.account-info-row span {
    display: block;

    min-width: 180px;

    font-size: 16px;
    line-height: 1.5;
    font-weight: 400;

    color: #8b98a8;
    opacity: 1;
}

.account-info-row strong {
    display: block;

    text-align: right;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 500;

    color: #18314f;
}

.account-info-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-top: auto;
    padding-top: 28px;

    font-size: 16px;
    line-height: 1.4;
    font-weight: 600;

    color: #18314f;
    text-decoration: none;
}

.account-info-card__link:hover {
    color: #f59b42;
}


/* =========================================================
   Discount
========================================================= */

.account-info-card--discount {
    justify-content: space-between;
}

.account-discount {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;

    margin: 10px 0 24px;
}

.account-discount__value {
    margin-bottom: 12px;

    font-size: 88px;
    line-height: 0.95;
    font-weight: 500;

    color: #18314f;
}

.account-discount__level {
    font-size: 18px;
    line-height: 1.5;
    font-weight: 400;

    color: #8b98a8;
    opacity: 1;
}


/* =========================================================
   Dashboard sections
========================================================= */

.account-dashboard__sections {
    margin-top: 20px;
}

.account-dashboard__sections h2 {
    margin: 0 0 28px;

    font-size: 32px;
    line-height: 1.2;
    font-weight: 600;

    color: #18314f;
}

.account-menu-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.account-menu-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    min-height: 145px;
    padding: 28px;

    color: #18314f;
    text-decoration: none;

    background: #ffffff;
    border: 1px solid #e7edf3;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(15, 37, 63, 0.05);

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.account-menu-card:hover {
    transform: translateY(-3px);
    border-color: #d7e0ea;
    box-shadow: 0 14px 36px rgba(15, 37, 63, 0.08);
}

.account-menu-card__content {
    min-width: 0;
}

.account-menu-card__title {
    margin-bottom: 8px;

    font-size: 20px;
    line-height: 1.3;
    font-weight: 600;

    color: #18314f;
}

.account-menu-card__text {
    max-width: 350px;

    font-size: 14px;
    line-height: 1.5;
    font-weight: 400;

    color: #8b98a8;
    opacity: 1;
}

.account-menu-card__arrow {
    flex: 0 0 auto;

    font-size: 28px;
    line-height: 1;

    color: #18314f;
}


/* =========================================================
   Logout
========================================================= */

.account-dashboard__logout {
    margin-top: 40px;
}

.account-dashboard__logout a {
    color: #7b8a9b;
    text-decoration: none;
    opacity: 1;
}

.account-dashboard__logout a:hover {
    color: #18314f;
}


/* =========================================================
   Profile page
========================================================= */

.account-profile-page {
    max-width: 1000px;
    color: #18314f;
}

.account-profile-page__back {
    margin-bottom: 24px;
}

.account-profile-page__back a {
    color: #7b8a9b;
    text-decoration: none;
    opacity: 1;
}

.account-profile-page__back a:hover {
    color: #18314f;
}

.account-profile-card {
    padding: 40px;

    background: #ffffff;
    border: 1px solid #e7edf3;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(15, 37, 63, 0.06);
}

.account-profile-card__heading {
    margin-bottom: 40px;
}

.account-profile-card__heading h2 {
    margin: 0 0 10px;

    font-size: 32px;
    line-height: 1.2;
    font-weight: 600;

    color: #18314f;
}

.account-profile-card__heading p {
    margin: 0;

    color: #7b8a9b;
    opacity: 1;
}


/* =========================================================
   Form sections
========================================================= */

.account-form-section {
    padding: 32px 0;
    border-top: 1px solid #edf2f6;
}

.account-form-section:first-of-type {
    padding-top: 0;
    border-top: 0;
}

.account-form-section h3 {
    margin: 0 0 24px;

    font-size: 20px;
    line-height: 1.3;
    font-weight: 600;

    color: #18314f;
}

.account-form-section__hint {
    margin: -12px 0 24px;

    font-size: 14px;
    line-height: 1.5;

    color: #8b98a8;
    opacity: 1;
}


/* =========================================================
   Form grid
========================================================= */

.account-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.account-profile-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.account-profile-form .form-group label {
    font-size: 14px;
    line-height: 1.4;
    font-weight: 500;

    color: #18314f;
}

.account-profile-form input {
    width: 100%;
    height: 54px;

    padding: 0 16px;

    border: 1px solid #d7e0ea;
    border-radius: 12px;

    background: #ffffff;
    color: #18314f;

    font: inherit;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.account-profile-form input::placeholder {
    color: #9aa7b4;
}

.account-profile-form input:hover {
    border-color: #b9c7d5;
}

.account-profile-form input:focus {
    border-color: #18314f;
    box-shadow: 0 0 0 3px rgba(24, 49, 79, 0.08);
}


/* =========================================================
   Messages
========================================================= */

.account-message {
    margin-bottom: 30px;
    padding: 16px 20px;

    border-radius: 12px;

    font-size: 14px;
    line-height: 1.5;
}

.account-message--success {
    color: #1d5e33;
    background: rgba(30, 150, 70, 0.08);
}

.account-message--error {
    color: #9e2f2f;
    background: rgba(200, 40, 40, 0.08);
}


/* =========================================================
   Actions
========================================================= */

.account-form-actions {
    display: flex;
    padding-top: 10px;
}


/* =========================================================
   Tablet
========================================================= */

@media (max-width: 1023px) {

    .account-info-grid,
    .account-menu-grid {
        grid-template-columns: 1fr;
    }

    .account-info-card__title {
        font-size: 24px;
    }

    .account-discount__value {
        font-size: 72px;
    }

}


/* =========================================================
   Mobile
========================================================= */

@media (max-width: 767px) {

    .account-dashboard,
    .account-profile-page {
        padding-bottom: 50px;
    }

    .account-dashboard__welcome {
        align-items: flex-start;
        flex-direction: column;

        margin-bottom: 24px;
        padding: 24px;
    }

    .account-dashboard__name {
        font-size: 26px;
    }

    .account-info-grid {
        gap: 16px;
        margin-bottom: 40px;
    }

    .account-info-card {
        min-height: auto;
        padding: 24px;
    }

    .account-info-card__title {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .account-info-row {
        flex-direction: column;
        gap: 6px;
    }

    .account-info-row span {
        min-width: 0;
    }

    .account-info-row strong {
        text-align: left;
    }

    .account-discount {
        margin: 20px 0;
    }

    .account-discount__value {
        font-size: 56px;
    }

    .account-menu-grid {
        gap: 14px;
    }

    .account-menu-card {
        min-height: 120px;
        padding: 22px;
    }

    .account-menu-card__title {
        font-size: 18px;
    }

    .account-profile-card {
        padding: 24px;
    }

    .account-profile-card__heading {
        margin-bottom: 30px;
    }

    .account-profile-card__heading h2 {
        font-size: 26px;
    }

    .account-form-grid {
        grid-template-columns: 1fr;
    }

}

/* =========================================================
   Personal — Common subpages
========================================================= */

.account-subpage {
    padding-bottom: 80px;
    color: #ffffff;
}

.account-subpage__back {
    margin-bottom: 28px;
}

.account-subpage__back a {
    color: rgba(255, 255, 255, 0.68);
    text-decoration: none;

    transition: color 0.2s ease;
}

.account-subpage__back a:hover {
    color: #ffffff;
}

.account-subpage__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;

    margin-bottom: 32px;
}

.account-subpage__header h2 {
    margin: 0 0 8px;

    color: #ffffff;

    font-size: 32px;
    line-height: 1.2;
    font-weight: 600;
}

.account-subpage__header p {
    max-width: 650px;
    margin: 0;

    color: rgba(255, 255, 255, 0.72);

    font-size: 15px;
    line-height: 1.55;
}


/* =========================================================
   Tabs
========================================================= */

.account-tabs {
    display: flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 28px;
    padding: 5px;

    width: fit-content;

    background: #f3f6f8;
    border-radius: 14px;
}

.account-tabs__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;
    padding: 0 20px;

    color: #718094;

    font-size: 14px;
    font-weight: 500;

    text-decoration: none;

    border-radius: 10px;

    transition:
        color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.account-tabs__item:hover {
    color: #18314f;
}

.account-tabs__item.active {
    color: #18314f;

    background: #ffffff;
    box-shadow: 0 3px 12px rgba(15, 37, 63, 0.08);
}


/* =========================================================
   Orders
========================================================= */

.account-orders {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.account-order-card {
    padding: 28px 30px;

    background: #ffffff;
    border: 1px solid #e5ebf1;
    border-radius: 20px;

    box-shadow: 0 8px 24px rgba(15, 37, 63, 0.045);
}

.account-order-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;

    padding-bottom: 24px;

    border-bottom: 1px solid #edf2f6;
}

.account-order-card__number {
    margin-bottom: 6px;

    color: #18314f;

    font-size: 20px;
    line-height: 1.3;
    font-weight: 600;
}

.account-order-card__date {
    color: #8b98a8;

    font-size: 14px;
}

.account-order-status {
    display: inline-flex;
    align-items: center;

    min-height: 34px;
    padding: 0 13px;

    font-size: 13px;
    line-height: 1;
    font-weight: 500;

    border-radius: 100px;
}

.account-order-status--active {
    color: #165b8e;
    background: #edf6fc;
}

.account-order-status--completed {
    color: #297347;
    background: #edf8f1;
}

.account-order-status--canceled {
    color: #9a4a4a;
    background: #fbefef;
}

.account-order-card__info {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;

    padding: 24px 0;
}

.account-order-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.account-order-meta span {
    color: #8b98a8;

    font-size: 13px;
}

.account-order-meta strong {
    color: #18314f;

    font-size: 16px;
    line-height: 1.4;
    font-weight: 500;
}

.account-order-card__bottom {
    display: flex;
    justify-content: flex-end;

    padding-top: 20px;

    border-top: 1px solid #edf2f6;
}

.account-order-card__link {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    color: #18314f;

    font-size: 14px;
    font-weight: 600;

    text-decoration: none;
}

.account-order-card__link span {
    font-size: 20px;

    transition: transform 0.2s ease;
}

.account-order-card__link:hover span {
    transform: translateX(4px);
}


/* =========================================================
   Empty
========================================================= */

.account-empty {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    padding: 48px;

    background: #ffffff;
    border: 1px solid #e5ebf1;
    border-radius: 20px;

    box-shadow: 0 8px 24px rgba(15, 37, 63, 0.045);
}

.account-empty--compact {
    padding: 30px;
}

.account-empty__title {
    margin-bottom: 8px;

    color: #18314f;

    font-size: 22px;
    font-weight: 600;
}

.account-empty__text {
    max-width: 500px;
    margin-bottom: 24px;

    color: #7b8a9b;

    font-size: 15px;
    line-height: 1.55;
}


/* =========================================================
   Bonus overview
========================================================= */

.bonus-overview {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;

    margin-bottom: 54px;
}

.bonus-balance-card,
.bonus-discount-card {
    min-height: 280px;
    padding: 32px;

    background: #ffffff;
    border: 1px solid #e5ebf1;
    border-radius: 24px;

    box-shadow: 0 10px 30px rgba(15, 37, 63, 0.05);
}

.bonus-balance-card {
    background: #17324f;
}

.bonus-balance-card__label {
    margin-bottom: 38px;

    color: rgba(255, 255, 255, 0.65);

    font-size: 15px;
}

.bonus-balance-card__value {
    color: #ffffff;

    font-size: 72px;
    line-height: 0.95;
    font-weight: 500;
}

.bonus-balance-card__unit {
    margin-top: 12px;

    color: rgba(255, 255, 255, 0.62);

    font-size: 16px;
}

.bonus-discount-card__label {
    margin-bottom: 38px;

    color: #8b98a8;

    font-size: 15px;
}

.bonus-discount-card__value {
    color: #18314f;

    font-size: 72px;
    line-height: 0.95;
    font-weight: 500;
}

.bonus-discount-card__level {
    margin-top: 12px;

    color: #7b8a9b;

    font-size: 16px;
}


/* =========================================================
   Bonus info
========================================================= */

.bonus-about {
    margin-bottom: 54px;
}

.bonus-about h2,
.bonus-history h2 {
    margin: 0 0 26px;

    color: #ffffff;

    font-size: 28px;
    line-height: 1.25;
    font-weight: 600;
}

.bonus-about__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.bonus-about-card {
    min-height: 200px;
    padding: 26px;

    background: #ffffff;
    border: 1px solid #e5ebf1;
    border-radius: 18px;
}

.bonus-about-card__number {
    margin-bottom: 32px;

    color: #a7b2be;

    font-size: 13px;
    font-weight: 600;
}

.bonus-about-card__title {
    margin-bottom: 9px;

    color: #18314f;

    font-size: 18px;
    font-weight: 600;
}

.bonus-about-card__text {
    color: #7b8a9b;

    font-size: 14px;
    line-height: 1.55;
}


/* =========================================================
   Bonus history
========================================================= */

.bonus-history__list {
    overflow: hidden;

    background: #ffffff;
    border: 1px solid #e5ebf1;
    border-radius: 20px;
}

.bonus-history-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;

    padding: 22px 26px;

    border-bottom: 1px solid #edf2f6;
}

.bonus-history-row:last-child {
    border-bottom: 0;
}

.bonus-history-row__title {
    margin-bottom: 6px;

    color: #18314f;

    font-size: 16px;
    font-weight: 500;
}

.bonus-history-row__meta {
    display: flex;
    align-items: center;
    gap: 6px;

    color: #8b98a8;

    font-size: 13px;
}

.bonus-history-row__meta a {
    color: inherit;
    text-decoration: none;
}

.bonus-history-row__meta a:hover {
    color: #18314f;
}

.bonus-history-row__amount {
    flex: 0 0 auto;

    font-size: 20px;
    line-height: 1;
    font-weight: 600;
}

.bonus-history-row__amount--plus {
    color: #297347;
}

.bonus-history-row__amount--minus {
    color: #9a4a4a;
}


/* =========================================================
   Personal responsive
========================================================= */

@media (max-width: 1023px) {

    .bonus-about__grid {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 767px) {

    .account-subpage {
        padding-bottom: 50px;
    }

    .account-subpage__header h2 {
        font-size: 27px;
    }

    .account-tabs {
        width: 100%;
        overflow-x: auto;

        justify-content: flex-start;
    }

    .account-tabs__item {
        flex: 0 0 auto;
    }

    .account-order-card {
        padding: 22px;
    }

    .account-order-card__top {
        flex-direction: column;
    }

    .account-order-card__info {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .account-order-card__bottom {
        justify-content: flex-start;
    }

    .account-empty {
        padding: 28px 24px;
    }

    .bonus-overview {
        grid-template-columns: 1fr;
        margin-bottom: 40px;
    }

    .bonus-balance-card,
    .bonus-discount-card {
        min-height: 230px;
        padding: 26px;
    }

    .bonus-balance-card__value,
    .bonus-discount-card__value {
        font-size: 58px;
    }

    .bonus-about {
        margin-bottom: 40px;
    }

    .bonus-about h2,
    .bonus-history h2 {
        font-size: 24px;
    }

    .bonus-history-row {
        align-items: flex-start;

        padding: 20px;
    }

}


/* =========================================================
   Contrast fixes for dark Personal Account background
========================================================= */

/* Текст, который находится непосредственно на тёмном фоне ЛК */
.account-subpage__back,
.account-subpage__header,
.bonus-about,
.bonus-history {
    color: #ffffff;
}

/* Переключатель заказов остаётся светлым самостоятельным блоком */
.account-tabs {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.account-tabs__item {
    color: #6f7f91;
}

.account-tabs__item:hover {
    color: #17324f;
    background: rgba(23, 50, 79, 0.06);
}

.account-tabs__item.active {
    color: #17324f;
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(9, 28, 48, 0.12);
}

/* Всё внутри белых карточек принудительно возвращаем в тёмную палитру */
.account-order-card,
.account-empty,
.bonus-discount-card,
.bonus-about-card,
.bonus-history__list {
    color: #18314f;
}

.account-empty__title,
.account-order-card__number,
.account-order-meta strong,
.account-order-card__link,
.bonus-discount-card__value,
.bonus-about-card__title,
.bonus-history-row__title {
    color: #18314f;
}

.account-empty__text,
.account-order-card__date,
.account-order-meta span,
.bonus-discount-card__label,
.bonus-discount-card__level,
.bonus-about-card__text,
.bonus-history-row__meta {
    color: #718299;
}

/* Заголовок истории операций находится снаружи белой карточки */
.bonus-history__heading h2 {
    color: #ffffff;
}

/* На случай глобальных правил исходного шаблона для h2/p/a */
.account-subpage > .account-subpage__header h2,
.account-subpage > .account-subpage__header p,
.account-subpage > .account-subpage__back a,
.account-subpage .bonus-about > h2,
.account-subpage .bonus-history__heading > h2 {
    opacity: 1;
}

@media (max-width: 767px) {
    .account-tabs {
        background: rgba(255, 255, 255, 0.96);
    }
}