/* ======================================
   ЛИЧНЫЙ КАБИНЕТ - ОБЩИЕ СТИЛИ
   ====================================== */

/* Скрытие стандартного битриксового уведомления о сессии */
.bx-session-message {
    display: none !important;
}

/* Информационный блок */
.info-block {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    background: #f8f8f8;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    margin-bottom: 12px;
    width: 100%;
    font-size: 14px;
    line-height: 1.6;
    color: #434343;
}

.info-block strong {
    color: #1a1a1a;
    font-weight: 600;
}

.info-block svg {
    margin-top: 2px;
}

.info-block svg circle,
.info-block svg path {
    stroke: #7C0DC6;
}

.info-block a {
    color: #7C0DC6;
    text-decoration: underline;
    transition: opacity 0.2s ease;
}

.info-block a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* ======================================
   МОДАЛЬНЫЕ ОКНА - КРЕСТИК
   ====================================== */

/* Позиционирование крестика в правом верхнем углу */
#loginModal .modal__wrapper,
#registerModal .modal__wrapper,
#resetModal .modal__wrapper {
    position: relative;
}

#loginModal .modal__close,
#registerModal .modal__close,
#resetModal .modal__close {
    position: absolute !important;
    right: 20px !important;
    top: 20px !important;
    cursor: pointer;
    z-index: 10;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
}

#loginModal .modal__close:hover,
#registerModal .modal__close:hover,
#resetModal .modal__close:hover {
    opacity: 0.7;
}

#loginModal .modal__close .svg-icon,
#registerModal .modal__close .svg-icon,
#resetModal .modal__close .svg-icon {
    width: 20px;
    height: 20px;
}

/* Убираем крестик из потока заголовка */
#loginModal .modal__head,
#registerModal .modal__head,
#resetModal .modal__head {
    display: block;
    padding-right: 50px; /* Место для крестика */
}

#loginModal .modal-title,
#registerModal .modal-title,
#resetModal .modal-title {
    margin: 0 !important;
}

/* Переопределение цвета кнопок для ЛК и модалок */
.profile-page .btn-accent,
.modal-order .btn-accent {
    background: #434343;
    color: #fff;
    border: none;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.profile-page .btn-accent:hover,
.modal-order .btn-accent:hover {
    background: #2d2d2d;
    color: #fff;
}

.profile-page .btn-accent:disabled,
.modal-order .btn-accent:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.profile-page {
    padding: 40px 0 80px;
}

.profile-page h1 {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 32px;
    color: #1a1a1a;
}

.profile-container {
    display: flex;
    gap: 32px;
}

/* ======================================
   БОКОВОЕ МЕНЮ
   ====================================== */

.profile-sidebar {
    flex: 0 0 280px;
    width: 280px;
}

.profile-menu {
    background: #f8f8f8;
    border-radius: 16px;
    padding: 16px;
    position: sticky;
    top: 100px;
}

.profile-menu__item {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    border-radius: 12px;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-bottom: 4px;
}

.profile-menu__item:last-child {
    margin-bottom: 0;
}

.profile-menu__item:hover {
    background: #fff;
    color: #434343;
}

.profile-menu__item.active {
    background: #434343;
    color: #fff;
}

.profile-menu__item.logout-btn {
    color: #f44336;
    margin-top: 16px;
    border-top: 1px solid #e0e3e6;
    padding-top: 20px;
}

.profile-menu__item.logout-btn:hover {
    background: rgba(244, 67, 54, 0.1);
}

/* ======================================
   ОСНОВНОЙ КОНТЕНТ
   ====================================== */

.profile-content {
    flex: 1;
    min-width: 0;
}

/* Исправление для тега <a> в profile-content - делаем inline */
.profile-content a {
    display: inline !important;
}

.profile-tab {
    display: none;
}

.profile-tab.active {
    display: block;
}

.profile-tab h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 24px;
    color: #1a1a1a;
}

/* ======================================
   КАРТОЧКИ ЗАКАЗОВ
   ====================================== */

.order-card {
    background: #f8f8f8;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 16px;
    transition: all 0.2s ease;
}

.order-card:hover {
    background: #f0f0f0;
}

.order-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #1a1a1a;
}

.order-status {
    background: #4CAF50;
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
}

.order-status.processing {
    background: #FF9800;
}

.order-status.cancelled {
    background: #f44336;
}

/* ======================================
   КАРТОЧКИ ОТЗЫВОВ
   ====================================== */

.review-card {
    background: #f8f8f8;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 16px;
}

.review-card p {
    margin: 0;
    line-height: 1.5;
    color: #4a4a4a;
}

/* ======================================
   КАРТОЧКИ ПРОМОКОДОВ - МИНИМАЛИСТИЧНЫЙ ДИЗАЙН
   ====================================== */

#promocodes-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

/* Если пустое состояние - убираем grid, делаем блоком */
#promocodes-container:has(.empty-state) {
    display: block;
}

.promo-card {
    background: #f8f8f8;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    padding: 16px 20px;
    transition: all 0.2s ease;
}

.promo-card:hover {
    background: #f0f0f0;
}

.promo-card.promo-disabled {
    opacity: 0.5;
}

.promo-card__content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.promo-card__code-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.promo-card__code {
    font-size: 16px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    color: #434343;
    letter-spacing: 0.5px;
}

.promo-card .link-copy-acticle {
    display: flex;
    align-items: center;
    color: #434343;
    transition: color 0.2s ease;
    cursor: pointer;
}

.promo-card .link-copy-acticle:hover {
    color: #434343;
    opacity: 0.7;
}

.promo-card .link-copy-acticle svg {
    stroke: #434343;
    fill: none;
}

.promo-card__info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
}

.promo-card__discount {
    color: #434343;
    font-weight: 600;
}

.promo-card__date {
    color: #767676;
}

.promo-card__product {
    color: #767676;
}

.promo-card__status {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
    width: fit-content;
}

.promo-card__status.promo-active {
    background: #E8F5E9;
    color: #4CAF50;
}

.promo-card__status.promo-used {
    background: #f5f5f5;
    color: #999;
}

.promo-card__status.promo-expired {
    background: #f5f5f5;
    color: #999;
}

/* ======================================
   ФОРМА НАСТРОЕК ПРОФИЛЯ
   ====================================== */

.profile-settings-form {
    max-width: 600px;
}

.profile-settings-form label {
    display: block;
    margin-bottom: 20px;
}

.profile-settings-form .input-text {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.profile-settings-form input[type="text"],
.profile-settings-form input[type="email"],
.profile-settings-form input[type="tel"] {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e0e3e6;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.2s ease;
}

.profile-settings-form input:focus {
    border-color: #434343;
    outline: none;
}

.profile-settings-form input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #f8f8f8;
}

.profile-settings-form button[type="submit"] {
    margin-top: 12px;
}

/* Аватар */
.avatar-upload {
    margin-bottom: 32px;
}

.avatar-preview {
    margin-bottom: 12px;
}

/* ======================================
   ПУСТОЕ СОСТОЯНИЕ
   ====================================== */

.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state p {
    font-size: 18px;
    color: #767676;
    margin: 0;
}

/* ======================================
   СПИННЕР ЗАГРУЗКИ
   ====================================== */

.loading-spinner {
    text-align: center;
    padding: 40px;
}

.loading-spinner p {
    color: #767676;
    font-size: 15px;
}

/* ======================================
   МОДАЛЬНЫЕ ОКНА АВТОРИЗАЦИИ
   ====================================== */

/* Общие стили для модальных окон */
/* Убрано ограничение max-width для модального окна оформления заказа */
/* .modal-order .modal__wrapper {
    max-width: 480px;
} */

.modal-order .modal-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    color: #1a1a1a;
}

.modal-order label {
    display: block;
    margin-bottom: 16px;
}

/* Скрываем поле промокода по умолчанию, показываем только после клика */
.modal-order .promo-wrapper__label {
    display: none !important;
}

.modal-order .promo-wrapper__label.show {
    display: block !important;
}

.modal-order input[type="email"],
.modal-order input[type="password"],
.modal-order input[type="text"] {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e0e3e6;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.2s ease;
}

/* Обертка для поля пароля с иконкой просмотра */
.password-field-wrapper {
    position: relative;
}

.password-field-wrapper input {
    padding-right: 45px;
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #767676;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    transition: color 0.2s ease;
}

.password-toggle:hover {
    color: #434343;
}

.password-toggle .svg-icon {
    width: 20px;
    height: 20px;
    display: block;
}

.password-icon-eye-off {
    display: none !important;
}

.password-field-wrapper.show-password .password-icon-eye {
    display: none !important;
}

.password-field-wrapper.show-password .password-icon-eye-off {
    display: block !important;
}

.modal-order input:focus {
    border-color: #434343;
    outline: none;
}

.modal-order .form-error,
.profile-form .form-error {
    background: #ffebee;
    color: #c62828;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 16px;
    border: 1px solid #ef5350;
}

.modal-order .form-success,
.profile-form .form-success {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 16px;
    border: 1px solid #4caf50;
}

.modal-order .form-error a,
.modal-order .form-success a,
.profile-form .form-error a,
.profile-form .form-success a {
    color: inherit;
    text-decoration: underline;
}

.modal-order button[type="submit"] {
    width: 100%;
    margin-top: 8px;
    margin-bottom: 16px;
}

/* Навигационные ссылки */
.modal-nav-links {
    text-align: center;
    font-size: 14px;
    margin-top: 16px;
    margin-bottom: 0;
}

.modal-nav-links a {
    display: inline;
    color: #434343;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.modal-nav-links a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.modal-nav-links .separator {
    display: inline;
    color: #e0e3e6;
    margin: 0 8px;
}

/* Текст согласия */
.consent {
    font-size: 13px;
    color: #767676;
    line-height: 1.4;
    margin-top: 16px;
    margin-bottom: 16px;
}

.consent a {
    display: inline;
    color: #434343;
    text-decoration: none;
}

.consent a:hover {
    text-decoration: underline;
}

/* Описание для восстановления пароля */
.reset-description {
    margin-bottom: 24px;
}

.reset-description p {
    font-size: 14px;
    color: #767676;
    line-height: 1.5;
    margin: 0;
}

/* OAuth кнопки */
.oauth-buttons {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e0e3e6;
}

.oauth-title {
    text-align: center;
    font-size: 14px;
    color: #767676;
    margin-bottom: 16px;
}

.btn-oauth {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 12px;
}

.btn-oauth:last-child {
    margin-bottom: 0;
}

.btn-oauth-vk {
    background: #0077FF;
    color: #fff;
}

.btn-oauth-vk:hover {
    background: #0066dd;
}

.btn-oauth-yandex {
    background: #FC3F1D;
    color: #fff;
}

.btn-oauth-yandex:hover {
    background: #e63619;
}

.btn-oauth-google {
    background: #fff;
    color: #333;
    border: 1px solid #e0e0e0;
}

.btn-oauth-google:hover {
    background: #f8f8f8;
}

/* ======================================
   БЛОК ПОЛЬЗОВАТЕЛЯ В ХЕДЕРЕ
   ====================================== */

/* Кнопка входа для неавторизованных пользователей */
.header-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    margin-left: 16px;
    background: none;
    color: #434343;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s ease;
    cursor: pointer;
    border: none;
}

.header-login-btn:hover {
    color: #434343;
    text-decoration: none;
}

/* Круг с иконкой для неавторизованных пользователей */
.user-avatar--icon {
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-avatar--icon .svg-icon {
    width: 18px;
    height: 18px;
    fill: #434343;
}

/* При hover меняем цвет фона круга */
.header-login-btn:hover .user-avatar--icon {
    background-color: #d0d0d0;
}

.header-user-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.header-user-link:hover {
    color: #434343;
}

/* Dropdown пользователя - стили как у каталога */
.dropdown-my {
    position: relative;
    margin-left: auto;
    margin-right: 20px;
}

.dropdown-my-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 6px;
    margin: -6px;
    margin-right: 0;
}

.user-avatar {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid #e0e3e6;
    transition: border-color 0.2s ease;
}

.user-avatar--letter {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    color: #1a1a1a;
    text-transform: uppercase;
    border: none;
}

.dropdown-my:hover .user-avatar,
.dropdown-my.open .user-avatar {
    border-color: #434343;
}

.dropdown-my:hover .user-avatar--letter,
.dropdown-my.open .user-avatar--letter {
    border: none;
    opacity: 0.9;
}

.user-email {
    font-size: 14px;
    color: #363636;
    font-weight: 500;
    transition: color 0.2s ease;
    max-width: 105px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-my:hover .user-email,
.dropdown-my.open .user-email {
    color: #434343;
}

/* Выпадающее меню пользователя - без разрывов */
.dropdown-my .user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: -6px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 8px 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.15s ease, visibility 0.15s ease, transform 0.15s ease;
    z-index: 100;
    display: none;
}

.dropdown-my.open .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    display: block;
}

.user-dropdown-menu .dropdown-item {
    display: block;
    padding: 10px 24px;
    color: #363636;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.user-dropdown-menu .dropdown-item:hover {
    background: #f8f8f8;
    color: #434343;
}

/* ======================================
   ЛИЧНЫЙ КАБИНЕТ - ДОПОЛНИТЕЛЬНЫЕ СТИЛИ
   ====================================== */

/* Sidebar меню - полностью кликабельные пункты */
.sidebar-menu li {
    margin: 0 0 4px;
    position: relative;
}

.sidebar-menu li:last-child {
    margin: 0;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    padding: 10px 24px;
    width: 100%;
    color: #363636;
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: 0;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.sidebar-menu li a:hover {
    background: #f0f0f0;
    color: #434343;
}

.sidebar-menu li.active a {
    background: #f0f0f0;
    color: #434343;
    font-weight: 600;
}

.sidebar-menu li a span {
    pointer-events: none;
}

/* Профиль - форма редактирования */
.profile-form {
    max-width: 600px;
}

.profile-form__section {
    margin-bottom: 40px;
}

.profile-form__section h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 20px;
    color: #1a1a1a;
}

.profile-form label {
    display: block;
    margin-bottom: 16px;
}

.profile-form input[type="text"],
.profile-form input[type="email"],
.profile-form input[type="tel"],
.profile-form input[type="password"],
.profile-form input[type="text"] {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid #e0e3e6;
    background-color: #ffffff;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.2s ease;
}

.profile-form input:focus {
    border-color: #434343;
    outline: none;
}

.profile-form input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #f8f8f8;
}

.profile-form small {
    display: block;
    font-size: 13px;
    color: #767676;
    margin-top: 4px;
}

/* Загрузка аватара */
.avatar-upload-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.avatar-preview-large {
    width: 96px;
    height: 96px;
    min-width: 96px;
    min-height: 96px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #e0e3e6;
    background: #f8f8f8;
    flex-shrink: 0;
}

.avatar-preview-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.avatar-upload-controls {
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
}

.avatar-upload-controls .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.avatar-hint {
    font-size: 13px;
    color: #767676;
    margin: 0;
}

/* Карточки заказов - без ограничения ширины */
.order-card {
    background: #f8f8f8;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 12px;
    width: 100%;
}

.order-card__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.order-card__left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.order-card__number {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
}

.order-card__date {
    font-size: 13px;
    color: #767676;
}

.order-card__right {
    display: flex;
    align-items: center;
}

.order-card__price {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
}

.order-card__product {
    margin-bottom: 12px;
}

.order-card__product a {
    font-size: 14px;
    color: #363636;
    text-decoration: none;
}

.order-card__product a:hover {
    color: #434343;
}

.order-card__actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

/* Унифицированные стили для всех кнопок в списке заказов */
.order-card__actions .btn {
    height: 48px;
    line-height: 48px;
    padding: 0 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: 1px solid #e0e3e6;
    background: #fff;
    color: #363636;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.order-card__actions .btn-border-dark {
    background: #fff;
    border: 1px solid #e0e3e6;
    color: #363636;
}

.order-card__actions .btn-border-dark:hover {
    border-color: #434343;
    color: #434343;
    background: #fff;
}

.order-card__actions .btn-border-dark:disabled,
.order-card__actions button.btn-border-dark[disabled] {
    opacity: 0.6;
    cursor: default;
    pointer-events: none;
    background: #f5f5f5;
    border-color: #e0e3e6;
    color: #767676;
}

.order-card__actions .btn-border-dark:disabled:hover,
.order-card__actions button.btn-border-dark[disabled]:hover {
    border-color: #e0e3e6;
    color: #767676;
    background: #f5f5f5;
    opacity: 0.6;
}

.order-card__actions .btn-green.shiny-gold-button {
    background: #1E9B18;
    border-color: #1E9B18;
    color: #fff;
    height: 48px;
    line-height: 48px;
    padding: 0 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.order-card__actions .btn-green.shiny-gold-button:hover,
.order-card__actions .btn-green.shiny-gold-button:focus {
    background: #187f13;
    border-color: #187f13;
    color: #fff;
}

.btn-link {
    background: transparent;
    border: none;
    color: #434343;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    line-height: 1.4;
}

.btn-link:hover {
    color: #434343;
    text-decoration: underline;
}

/* ======================================
   СОСТАВ ЗАКАЗА (ДЕТАЛИ С КЛЮЧАМИ)
   ====================================== */

.order-details {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e6e6e6;
}

.order-details__content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 14px;
    color: #767676;
}

.order-details__product,
.order-details__quantity {
    line-height: 1.5;
}

.order-details__product strong,
.order-details__quantity strong,
.order-details__keys strong {
    color: #1a1a1a;
    font-weight: 500;
}

.order-details__product a {
    color: #434343;
    text-decoration: none;
}

.order-details__product a:hover {
    text-decoration: underline;
}

.order-details__keys {
    margin-top: 4px;
}

.order-keys-list {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.order-key-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    padding: 10px 12px;
}

.order-key-code {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #434343;
    background: transparent;
    padding: 0;
    word-break: break-all;
}

/* Исправление для тега <a> в ключах - делаем inline */
.order-key-code a,
.order-keys-list a {
    display: inline !important;
}

.btn-copy-key {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #434343;
    transition: opacity 0.2s ease;
}

.btn-copy-key:hover {
    opacity: 0.7;
}

.btn-copy-key svg {
    stroke: #434343;
    fill: none;
}

.order-details__no-keys {
    color: #999;
    font-style: italic;
    font-size: 13px;
}

/* ======================================
   СТРАНИЦА ДЕТАЛЬНОГО ПРОСМОТРА ЗАКАЗА
   ====================================== */

.order-detail-content {
    max-width: 900px;
}

.order-detail-header {
    margin-bottom: 24px;
}

.order-detail-header .btn-back {
    margin-bottom: 16px;
    display: block !important;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    color: #434343;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
    transition: opacity 0.2s ease;
}

.btn-back:hover {
    opacity: 0.7;
    text-decoration: none;
}

.order-detail-card {
    background: #f8f8f8;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
}

.order-detail-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e6e6e6;
}

.order-detail-card__number {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
}

.order-detail-card__date {
    font-size: 14px;
    color: #767676;
}

.order-detail-card__section {
    margin-bottom: 24px;
}

.order-detail-card__section:last-child {
    margin-bottom: 0;
}

.order-detail-card__section + .order-detail-card__section {
    margin-top: 0;
}

.order-detail-card__title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 16px;
}

.order-detail-card__product-link {
    display: inline-block;
    font-size: 16px;
    color: #434343;
    text-decoration: none;
    margin-bottom: 8px;
    transition: color 0.2s ease;
}

.order-detail-card__product-link:hover {
    color: #7C0DC6;
    text-decoration: underline;
}

.order-detail-card__product-name {
    font-size: 16px;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.order-detail-card__quantity {
    font-size: 14px;
    color: #767676;
    margin-bottom: 8px;
}

.order-detail-card__promo,
.order-detail-card__discount {
    font-size: 14px;
    color: #434343;
    margin-top: 12px;
    margin-bottom: 0;
}

.order-detail-card__promo strong,
.order-detail-card__discount strong {
    color: #1a1a1a;
    font-weight: 600;
}

.order-detail-card__instructions {
    font-size: 14px;
    line-height: 1.6;
    color: #434343;
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    padding: 16px;
}

.order-detail-card__instructions p {
    margin: 0 0 12px;
}

.order-detail-card__instructions p:last-child {
    margin-bottom: 0;
}

/* Исправление для тега <a> в инструкциях - делаем inline */
.order-detail-card__instructions a {
    display: inline !important;
}

.profile-content a.order-detail-card__distr-link {
    display: block !important;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    height: 48px;
    line-height: 48px;
    padding: 0 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #e0e3e6;
    background: #fff;
    color: #363636;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    width: fit-content;
}

.order-detail-card__distr-link:hover {
    border-color: #434343;
    color: #434343;
    background: #fff;
}

.order-detail-card__actions {
    border-top: 1px solid #e6e6e6;
    padding-top: 24px;
    margin-top: 24px;
}

.order-detail-card__actions-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

/* Унифицированные стили для всех кнопок в детальном просмотре */
.order-detail-card__actions-buttons .btn {
    flex: 0 0 auto;
    height: 48px;
    line-height: 48px;
    padding: 0 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: 1px solid #e0e3e6;
    background: #fff;
    color: #363636;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.order-detail-card__actions-buttons .btn-border-dark {
    background: #fff;
    border: 1px solid #e0e3e6;
    color: #363636;
}

.order-detail-card__actions-buttons .btn-border-dark:hover {
    border-color: #434343;
    color: #434343;
    background: #fff;
}

.order-detail-card__actions-buttons .btn-border-dark:disabled,
.order-detail-card__actions-buttons button.btn-border-dark[disabled] {
    opacity: 0.6;
    cursor: default;
    pointer-events: none;
    background: #f5f5f5;
    border-color: #e0e3e6;
    color: #767676;
}

.order-detail-card__actions-buttons .btn-border-dark:disabled:hover,
.order-detail-card__actions-buttons button.btn-border-dark[disabled]:hover {
    border-color: #e0e3e6;
    color: #767676;
    background: #f5f5f5;
    opacity: 0.6;
}

.order-detail-card__actions-buttons .btn-green.shiny-gold-button {
    background: #1E9B18;
    border-color: #1E9B18;
    color: #fff;
    height: 48px;
    line-height: 48px;
    padding: 0 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.order-detail-card__actions-buttons .btn-green.shiny-gold-button:hover,
.order-detail-card__actions-buttons .btn-green.shiny-gold-button:focus {
    background: #187f13;
    border-color: #187f13;
    color: #fff;
}

/* Состояния загрузки и пустого списка */
.loading-state,
.error-state {
    text-align: center;
    padding: 40px 20px;
    color: #767676;
    font-size: 14px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state p {
    font-size: 16px;
    color: #767676;
    margin-bottom: 24px;
}

/* Карточки отзывов */
/* Отзывы в ЛК - дополнительные стили для неактивных */
.reviews-product-box--inactive {
    opacity: 0.65;
    position: relative;
}

.reviews-product-box--inactive::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    pointer-events: none;
}

.review-status-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
    margin-left: 8px;
    white-space: nowrap;
}

/* Старые стили review-card для совместимости */
.review-card {
    background: #f8f8f8;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 16px;
    transition: opacity 0.2s ease;
}

.review-card--inactive {
    opacity: 0.6;
}

.review-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.review-card__info {
    flex: 1;
}

.review-card__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.review-card__product {
    font-size: 16px;
    font-weight: 500;
    color: #363636;
    text-decoration: none;
    margin-bottom: 8px;
    display: block;
}

.review-card__product:hover {
    color: #434343;
}

.review-card__rating {
    display: flex;
    gap: 4px;
}

.star-icon {
    width: 16px;
    height: 16px;
}

.star-filled {
    fill: #ffa500;
}

.star-empty {
    fill: #e0e3e6;
}

.review-card__date {
    font-size: 13px;
    color: #767676;
}

.review-status {
    font-size: 12px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap;
}

.review-status--inactive {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.review-card__body p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #4a4a4a;
}

/* Пустое состояние */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state p {
    font-size: 18px;
    color: #767676;
    margin: 0 0 24px;
}

/* ======================================
   АДАПТИВНОСТЬ
   ====================================== */

@media (max-width: 1024px) {
    .profile-container {
        flex-direction: column;
    }
    
    .profile-sidebar {
        flex: 0 0 auto;
        width: 100%;
    }
    
    .profile-menu {
        position: static;
    }
}

@media (max-width: 768px) {
    .profile-page {
        padding: 24px 0 40px;
    }
    
    .profile-page h1 {
        font-size: 24px;
        margin-bottom: 24px;
    }
    
    .profile-container {
        gap: 24px;
    }
    
    .profile-menu {
        padding: 12px;
    }
    
    .profile-menu__item {
        padding: 12px 14px;
        font-size: 14px;
    }
    
    .profile-tab h2 {
        font-size: 20px;
    }
    
    .order-card,
    .review-card,
    .promo-card {
        padding: 12px 16px;
    }
    
    #promocodes-container {
        grid-template-columns: 1fr;
    }
    
    .order-card__row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 10px;
    }
    
    .order-card__left {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .order-card__actions {
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }
    
    .order-card__actions .btn {
        width: 100%;
    }
    
    .order-key-item {
        padding: 8px 10px;
    }
    
    .order-key-code {
        font-size: 12px;
    }
    
    .promo-card__header,
    .promo-card__footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .avatar-upload-section {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .social-auth__list {
        flex-direction: column;
    }
    
    .modal-auth .modal__wrapper {
        max-width: 100%;
    }
    
    .dropdown-my {
        margin-right: 12px;
    }
    
    /* Кнопка входа на мобильных */
    .header-login-btn .login-text {
        display: none;
    }
    
    .user-email {
        display: none;
    }
}

@media (max-width: 480px) {
    .profile-page h1 {
        font-size: 20px;
    }
    
    .profile-settings-form,
    .profile-form {
        max-width: 100%;
    }
    
    .order-card__title {
        font-size: 16px;
    }
    
    .promo-card__code {
        font-size: 20px;
    }
}

/* Блок информации о скидках */
.discount-info-block {
    background: #f8f8f8;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.discount-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.discount-info-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.discount-info-link {
    color: #434343;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.discount-info-link:hover {
    color: #7C0DC6;
    text-decoration: underline;
}

.discount-info-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.discount-stat-item {
    text-align: center;
}

.discount-stat-label {
    font-size: 14px;
    color: #767676;
    margin-bottom: 8px;
}

.discount-stat-value {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
}

.discount-stat-value.discount-value {
    color: #7C0DC6;
}

.next-tier-info {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.next-tier-text {
    font-size: 14px;
    color: #434343;
    margin-bottom: 12px;
}

.next-tier-text strong {
    color: #1a1a1a;
    font-weight: 600;
}

.next-tier-progress {
    width: 100%;
}

.next-tier-progress-bar {
    width: 100%;
    height: 8px;
    background: #e6e6e6;
    border-radius: 4px;
    overflow: hidden;
}

.next-tier-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #7C0DC6 0%, #9d3dd9 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.discount-table-container {
    margin-top: 20px;
}

.discount-table-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.discount-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.discount-table thead {
    background: #f5f5f5;
}

.discount-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    color: #434343;
    border-bottom: 1px solid #e6e6e6;
}

.discount-table td {
    padding: 12px 16px;
    font-size: 14px;
    color: #1a1a1a;
    border-bottom: 1px solid #f0f0f0;
}

.discount-table tbody tr:last-child td {
    border-bottom: none;
}

.discount-table tbody tr:hover {
    background: #fafafa;
}

.discount-tier-current {
    background: #f0e6ff !important;
}

.discount-tier-current td {
    color: #7C0DC6;
    font-weight: 600;
}

.discount-tier-reached {
    opacity: 0.7;
}

.discount-table p {
    margin: 0;
}

@media (max-width: 768px) {
    .discount-info-stats {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .discount-info-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .discount-stat-value {
        font-size: 20px;
    }
}

