/* ==========================================
   DivaRoza — Личный кабинет v1.0
   ========================================== */

/* ---------- СТРАНИЦА ВХОДА/РЕГИСТРАЦИИ ---------- */
.account-page { padding: 40px 0; }

.account-header { text-align: center; margin-bottom: 24px; }

.account-subtitle { color: #888; font-size: 15px; margin-top: 6px; }

.account-forms { max-width: 440px; margin: 0 auto; }

.account-form-card { background: #fff; border: 1px solid #eee; border-radius: 16px; padding: 32px; text-align: center; }

.account-form-icon { font-size: 48px; display: block; margin-bottom: 8px; }

.account-form-card h2 { font-family: 'Playfair Display', serif; font-size: 1.5rem; margin-bottom: 20px; color: #333; }

.account-phone-form { display: flex; flex-direction: column; gap: 12px; text-align: left; }

.account-phone-form input[type="text"],
.account-phone-form input[type="tel"],
.account-phone-form input[type="email"],
.account-phone-form input[type="password"] {
    width: 100%; padding: 12px 14px; border: 1px solid #e0e0e0; border-radius: 10px;
    font-size: 15px; font-family: inherit; box-sizing: border-box; transition: border-color 0.2s;
}
.account-phone-form input:focus { outline: none; border-color: #E65476; box-shadow: 0 0 0 3px rgba(230,84,118,0.1); }
.account-phone-form .btn { width: 100%; padding: 12px; font-size: 15px; margin-top: 4px; }

.remember-me { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #666; cursor: pointer; }
.remember-me input[type="checkbox"] { width: 16px; height: 16px; accent-color: #E65476; }

.account-link { margin-top: 12px; font-size: 14px; }
.account-link a { color: #E65476; text-decoration: none; }
.account-link a:hover { text-decoration: underline; }

.account-switch { text-align: center; margin-top: 18px; font-size: 14px; color: #888; }
.account-switch a { color: #E65476; font-weight: 600; text-decoration: none; }
.account-switch a:hover { text-decoration: underline; }

.account-bonus-hint { background: #FFF8E1; padding: 10px 14px; border-radius: 10px; font-size: 14px; color: #F57F17; border: 1px solid #FFE082; margin-bottom: 18px; text-align: center; }

.account-socials { margin-top: 20px; padding-top: 16px; border-top: 1px solid #eee; text-align: center; }
.account-socials-title { font-size: 13px; color: #999; margin-bottom: 12px; }
.account-socials-btns { display: flex; justify-content: center; gap: 12px; }
.btn-social { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; color: #fff; text-decoration: none; transition: opacity 0.2s; }
.btn-social:hover { opacity: 0.8; }
.btn-tg { background: #0088cc; }
.btn-vk { background: #0077FF; }

/* Уведомления */
.account-notification {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    display: none;
}

.account-notification.success {
    background: #E8F5E9;
    color: #2E7D32;
    border: 1px solid #A5D6A7;
}

.account-notification.error {
    background: #FFEBEE;
    color: #C62828;
    border: 1px solid #EF9A9A;
}

/* Стили для сообщений при повторной отправке */
.resend-message {
    margin-top: 16px;
    padding: 10px;
    border-radius: 8px;
    font-size: 13px;
}

.resend-message.success {
    background: #E8F5E9;
    color: #2E7D32;
}

.resend-message.error {
    background: #FFEBEE;
    color: #C62828;
}

/* Чекбокс согласия */
.checkbox-label {
    cursor: pointer;
    font-size: 13px;
    line-height: 1.4;
}

.checkbox-label a {
    color: #E65476;
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* ---------- ДАШБОРД ---------- */
.account-dashboard { padding: 40px 0; min-height: 60vh; }

.account-dashboard .account-header { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 20px; margin-bottom: 24px; text-align: left; }

.account-header-left { flex: 1; }
.account-header-contact { color: #888; font-size: 15px; margin-top: 4px; }
.account-header-right { display: flex; align-items: center; gap: 16px; }

.bonus-widget { display: flex; align-items: center; gap: 12px; padding: 12px 20px; background: linear-gradient(135deg, #FFF8E1, #FFF3CD); border-radius: 16px; border: 1px solid #FFE082; }
.bonus-widget-icon { font-size: 28px; }
.bonus-widget-info { display: flex; flex-direction: column; }
.bonus-widget-amount { font-size: 24px; font-weight: 700; color: #F57F17; line-height: 1; }
.bonus-widget-label { font-size: 12px; color: #888; }
.bonus-widget-rate { font-size: 12px; color: #666; background: #fff; padding: 4px 8px; border-radius: 20px; border: 1px solid #FFE082; }

.btn-logout { display: flex; align-items: center; gap: 6px; font-size: 14px; }

#auth-notification,
#account-notification { padding: 14px 20px; border-radius: 10px; margin-bottom: 20px; font-weight: 500; display: none; }
#auth-notification.success,
#account-notification.success { background: #E8F5E9; color: #2E7D32; border: 1px solid #A5D6A7; }
#auth-notification.error,
#account-notification.error { background: #FFEBEE; color: #C62828; border: 1px solid #EF9A9A; }

.account-tabs { display: flex; gap: 0; margin-bottom: 0; position: relative; z-index: 1; }
.account-tab { display: flex; align-items: center; gap: 6px; padding: 10px 18px; background: transparent; border: 1px solid transparent; color: #999; font-size: 14px; font-weight: 500; cursor: pointer; border-radius: 8px 8px 0 0; transition: all 0.2s; font-family: inherit; margin-right: 2px; }
.account-tab:hover { color: #555; background: rgba(0,0,0,0.02); }
.account-tab.active { color: #E65476; background: #fff; border-color: #eee; border-bottom-color: #fff; font-weight: 600; }
.account-tab i { font-size: 18px; }

#account-content { background: transparent; border: none; border-radius: 0 12px 12px 12px; padding: 0; min-height: 300px; position: relative; }
#account-content.loading { opacity: 0.6; pointer-events: none; }
.account-loader { display: none; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
#account-content.loading .account-loader { display: flex; }

.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.account-col { display: flex; flex-direction: column; gap: 24px; }

@media (max-width: 768px) {
    .account-grid { grid-template-columns: 1fr; }
    .account-dashboard .account-header { flex-direction: column; }
    .account-header-right { flex-direction: column; align-items: flex-start; }
    .btn-logout { width: 100%; justify-content: center; }
}

.account-card { background: #fff; border: 1px solid #eee; border-radius: 0px 12px; padding: 24px; }
.account-card h3 { font-family: 'Playfair Display', serif; font-size: 1.2rem; margin-bottom: 20px; color: #333; }

.bonus-cards { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.bonus-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #fafafa; border-radius: 10px; border: 1px solid #f0f0f0; transition: all 0.2s; }
.bonus-card:hover { border-color: #FFE082; background: #FFFDE7; }
.bonus-card.expiring { border-color: #FFCDD2; background: #FFF5F5; }
.bonus-card-icon { font-size: 24px; }
.bonus-card-info { flex: 1; }
.bonus-card-amount { font-weight: 700; font-size: 16px; color: #333; display: block; }
.bonus-card-type { font-size: 12px; color: #888; }
.bonus-card-expires { font-size: 12px; color: #aaa; white-space: nowrap; }

.account-empty-text { color: #999; font-size: 14px; text-align: center; padding: 30px 0; }
.account-bonus-info { padding: 12px 14px; background: #F5F5F5; border-radius: 8px; font-size: 13px; color: #666; line-height: 1.5; }

.account-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.account-table th { text-align: left; padding: 10px 12px; border-bottom: 2px solid #eee; color: #888; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.account-table td { padding: 10px 12px; border-bottom: 1px solid #f5f5f5; vertical-align: middle; }
.text-green { color: #2E7D32; font-weight: 600; }
.text-red { color: #C62828; font-weight: 600; }

.account-pagination { display: flex; gap: 6px; margin-top: 20px; justify-content: center; }
.page-link { padding: 8px 14px; border: 1px solid #e0e0e0; border-radius: 8px; background: #fff; color: #555; font-size: 14px; cursor: pointer; transition: all 0.15s; font-family: inherit; }
.page-link:hover { border-color: #E65476; color: #E65476; }
.page-link.active { background: #E65476; color: #fff; border-color: #E65476; }

.order-card { background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 16px 20px; margin-bottom: 14px; transition: box-shadow 0.2s; }
.order-card:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.05); }
.order-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.order-number { font-weight: 600; font-size: 15px; }
.order-date { font-size: 13px; color: #999; margin-left: 12px; }
.order-status { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.order-status.completed { background: #E8F5E9; color: #2E7D32; }
.order-status.processing { background: #FFF3E0; color: #E65100; }
.order-status.cancelled { background: #FFEBEE; color: #C62828; }
.order-status.pending { background: #F5F5F5; color: #888; }
.order-items { margin-bottom: 14px; }
.order-item { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid #f9f9f9; }
.order-item:last-child { border-bottom: none; }
.order-item-image { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; background: #f5f5f5; }
.order-item-name { font-size: 14px; font-weight: 500; }
.order-item-meta { font-size: 12px; color: #888; margin-top: 2px; }
.order-card-footer { display: flex; justify-content: space-between; align-items: center; }
.order-total { font-weight: 700; font-size: 16px; color: #333; }

.profile-field { margin-bottom: 18px; }
.profile-field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 13px; color: #666; text-transform: uppercase; letter-spacing: 0.5px; }
.profile-field input,
.profile-field textarea { width: 100%; max-width: 440px; padding: 12px 14px; border: 1px solid #e0e0e0; border-radius: 10px; font-size: 15px; font-family: inherit; transition: border-color 0.2s; box-sizing: border-box; }
.profile-field input:focus,
.profile-field textarea:focus { outline: none; border-color: #E65476; box-shadow: 0 0 0 3px rgba(230,84,118,0.1); }
.profile-field textarea { resize: vertical; }

.account-dates-hint { font-size: 13px; color: #999; margin-bottom: 20px; line-height: 1.5; }
.account-date-row { display: flex; gap: 12px; margin-bottom: 12px; align-items: center; }
.account-date-row input[type="text"] { flex: 1; padding: 10px 14px; border: 1px solid #e0e0e0; border-radius: 8px; font-size: 14px; font-family: inherit; }
.account-date-row input[type="date"] { width: 170px; padding: 10px 14px; border: 1px solid #e0e0e0; border-radius: 8px; font-size: 14px; font-family: inherit; }
.date-status { font-size: 20px; width: 36px; text-align: center; }

.account-empty { text-align: center; padding: 40px 20px; }
.account-empty-icon { font-size: 56px; display: block; margin-bottom: 16px; }
.account-empty p { margin-bottom: 16px; color: #888; }

#account-name-val, #account-phone, #account-email, #account-address { display: none; }

.email-verification-warning {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 600px) {
    .email-verification-warning {
        flex-direction: column;
        text-align: center;
    }
}

/* ==========================================
   DivaRoza — Личный кабинет
   v2.0 — Полностью адаптивный
   ========================================== */

/* ===== ОБЩИЕ СТИЛИ СТРАНИЦЫ ===== */
.account-page {
    padding: 40px 0;
    min-height: 60vh;
}

.account-header {
    text-align: center;
    margin-bottom: 32px;
}

.account-title {
    font-size: 32px;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1E1E1E;
}

.account-subtitle {
    font-size: 15px;
    color: #888;
}

/* ===== УВЕДОМЛЕНИЯ ===== */
.account-notification {
    max-width: 400px;
    margin: 0 auto 20px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    display: none;
}

.account-notification.success {
    background: #E8F5E9;
    color: #2E7D32;
    border: 1px solid #A5D6A7;
}

.account-notification.error {
    background: #FFEBEE;
    color: #C62828;
    border: 1px solid #EF9A9A;
}

.email-error {
    font-size: 12px;
    margin-top: 4px;
    display: block;
    min-height: 18px;
}

/* ===== КАРТОЧКИ ФОРМ ===== */
.account-form-card {
    max-width: 420px;
    margin: 0 auto 20px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 36px 32px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    transition: box-shadow 0.3s ease;
}

.account-form-card:hover {
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.form-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 8px;
}

.account-form-card h2 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #1E1E1E;
}

.form-description {
    font-size: 14px;
    color: #888;
    margin-bottom: 20px;
}

.bonus-hint {
    background: #FFF8E1;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    color: #F57F17;
    border: 1px solid #FFE082;
    margin-bottom: 20px;
    text-align: center;
}

/* ===== ФОРМЫ ===== */
.account-phone-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: left;
}

.form-group {
    margin-bottom: 0;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #f0edea;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    background: #faf9f8;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #E65476;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(230,84,118,0.08);
}

.form-group input::placeholder {
    color: #bbb;
}

/* ===== ОПЦИИ ФОРМЫ ===== */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2px 0 2px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #E65476;
    cursor: pointer;
}

.checkbox-label span {
    user-select: none;
}

.forgot-link {
    font-size: 14px;
    color: #E65476;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s;
}

.forgot-link:hover {
    color: #c43f5e;
    text-decoration: underline;
}

/* ===== ЧЕКБОКС СОГЛАСИЯ ===== */
.checkbox-group {
    margin: 4px 0;
}

.checkbox-group .checkbox-label {
    align-items: flex-start;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

.checkbox-group .checkbox-label input {
    margin-top: 2px;
}

.checkbox-group .checkbox-label a {
    color: #E65476;
    text-decoration: none;
}

.checkbox-group .checkbox-label a:hover {
    text-decoration: underline;
}

/* ===== КНОПКИ ===== */
.account-phone-form .btn {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    margin-top: 4px;
}

.btn-primary {
    background: #E65476;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(230,84,118,0.2);
}

.btn-primary:hover {
    background: #d43f62;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(230,84,118,0.3);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* ===== ПЕРЕКЛЮЧЕНИЕ МЕЖДУ ФОРМАМИ ===== */
.account-link {
    text-align: center;
    margin-top: 16px;
    font-size: 14px;
}

.account-link a {
    color: #E65476;
    text-decoration: none;
    cursor: pointer;
}

.account-link a:hover {
    text-decoration: underline;
}

.account-switch {
    text-align: center;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #f0edea;
    font-size: 14px;
    color: #888;
}

.account-switch a {
    color: #E65476;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.account-switch a:hover {
    text-decoration: underline;
}

/* ===== УСПЕШНАЯ РЕГИСТРАЦИЯ ===== */
.registration-success-card {
    max-width: 500px;
    margin: 40px auto;
    background: linear-gradient(135deg, #fff 0%, #FFF5F5 100%);
    border-radius: 24px;
    padding: 40px 32px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    animation: fadeInScale 0.4s ease;
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.registration-success-card .success-icon {
    background: #E8F5E9;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 48px;
}

.registration-success-card h2 {
    font-size: 24px;
    margin: 0 0 8px;
    color: #2E7D32;
}

.registration-success-card p {
    font-size: 16px;
    color: #1E1E1E;
    margin: 0 0 16px;
}

.registration-success-card .bonus-hint {
    background: #FFF8E1;
    border-radius: 12px;
    padding: 16px;
    margin: 20px 0;
    font-size: 14px;
    color: #F57F17;
}

.registration-success-card .help-text {
    font-size: 14px;
    color: #6B6B6B;
    margin: 0 0 24px;
}

.registration-success-card .btn {
    background: #E65476;
    margin-bottom: 16px;
    width: 100%;
    max-width: 320px;
}

.registration-success-card .back-link {
    color: #E65476;
    font-size: 13px;
    text-decoration: none;
}

.registration-success-card .back-link:hover {
    text-decoration: underline;
}

#resend-message {
    margin-top: 16px;
    display: none;
    padding: 10px;
    border-radius: 8px;
    font-size: 13px;
}

#resend-message.success {
    color: #2E7D32;
    background: #E8F5E9;
    display: block;
}

#resend-message.error {
    color: #C62828;
    background: #FFEBEE;
    display: block;
}

/* ===== EMAIL CHANGED NOTICE ===== */
.email-changed-success-notice {
    max-width: 600px;
    margin: 20px auto;
    background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
    border-radius: 16px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    animation: slideDown 0.3s ease;
}

.email-changed-success-notice > div {
    flex: 1;
}

.email-changed-success-notice h4 {
    margin: 0 0 4px;
    font-size: 16px;
    color: #2E7D32;
}

.email-changed-success-notice p {
    margin: 0;
    font-size: 13px;
    color: #1E1E1E;
}

.email-changed-success-notice button {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #999;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================
   АДАПТИВ
   ========================================== */

/* Планшеты */
@media (max-width: 768px) {
    .account-page {
        padding: 24px 0;
    }
    
    .account-title {
        font-size: 26px;
    }
    
    .account-form-card {
        padding: 28px 20px;
        margin: 0 8px 16px;
        border-radius: 14px;
    }
    
    .account-form-card h2 {
        font-size: 22px;
    }
    
    .form-icon {
        font-size: 40px;
    }
    
    .form-group input {
        font-size: 14px;
        padding: 10px 14px;
    }
    
    .account-phone-form .btn {
        font-size: 15px;
        padding: 12px;
    }
    
    .registration-success-card {
        padding: 32px 24px;
        margin: 30px 16px;
    }
    
    .email-changed-success-notice {
        margin: 16px;
        padding: 16px 20px;
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }
}

/* Мобильные телефоны */
@media (max-width: 480px) {
    .account-page {
        padding: 56px 0;
    }
    
    .account-title {
        font-size: 22px;
    }
    
    .account-subtitle {
        font-size: 13px;
    }
    
    .account-form-card {
        padding: 20px 14px;
        margin: 0 4px 12px;
        border-radius: 12px;
        border: 1px solid #f0edea;
    }
    
    .account-form-card h2 {
        font-size: 20px;
    }
    
    .form-icon {
        font-size: 36px;
    }
    
    .form-description {
        font-size: 13px;
    }
    
    .form-group input {
        font-size: 13px;
        padding: 10px 12px;
        border-radius: 8px;
    }
    
    .form-options {
        align-items: flex-start;
        gap: 8px;
    }
    
    .checkbox-label {
        font-size: 13px;
    }
    
    .forgot-link {
        font-size: 13px;
    }
    
    .account-phone-form .btn {
        font-size: 14px;
        padding: 12px;
        border-radius: 8px;
    }
    
    .account-switch {
        font-size: 13px;
        padding-top: 12px;
        margin-top: 14px;
    }
    
    .account-link {
        font-size: 13px;
        margin-top: 12px;
    }
    
    .bonus-hint {
        font-size: 12px;
        padding: 8px 12px;
    }
    
    .checkbox-group .checkbox-label {
        font-size: 12px;
    }
    
    .registration-success-card {
        padding: 24px 16px;
        margin: 20px 8px;
        border-radius: 16px;
    }
    
    .registration-success-card .success-icon {
        width: 60px;
        height: 60px;
        font-size: 36px;
    }
    
    .registration-success-card h2 {
        font-size: 20px;
    }
    
    .registration-success-card p {
        font-size: 14px;
    }
    
    .registration-success-card .btn {
        font-size: 14px;
        padding: 12px;
    }
    
    .email-changed-success-notice {
        padding: 14px 16px;
        margin: 12px 8px;
        border-radius: 12px;
        flex-direction: column;
    }
    
    .email-changed-success-notice h4 {
        font-size: 15px;
    }
    
    .email-changed-success-notice p {
        font-size: 12px;
    }
    
    .email-changed-success-notice button {
        font-size: 24px;
    }
}

/* Маленькие телефоны (iPhone SE и подобные) */
@media (max-width: 380px) {
    .account-form-card {
        padding: 16px 10px;
    }
    
    .account-form-card h2 {
        font-size: 18px;
    }
    
    .form-icon {
        font-size: 32px;
    }
    
    .form-group input {
        font-size: 12px;
        padding: 8px 10px;
    }
    
    .account-phone-form .btn {
        font-size: 13px;
        padding: 10px;
    }
    
    .registration-success-card {
        padding: 16px 12px;
    }
    
    .registration-success-card h2 {
        font-size: 18px;
    }
}

/* ==========================================
   ДАШБОРД (авторизованные)
   ========================================== */

.account-dashboard {
    padding: 30px 0 60px;
    min-height: 60vh;
}

/* Предупреждение о неподтверждённом email */
.email-verification-warning {
    background: linear-gradient(135deg, #FFF5F5 0%, #FFEEF2 100%);
    border: 1px solid #FFCDD2;
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    animation: slideDown 0.3s ease;
}

.email-verification-warning .warning-content {
    display: flex;
    align-items: center;
    gap: 14px;
}

.email-verification-warning .warning-content > span {
    font-size: 32px;
}

.email-verification-warning h3 {
    margin: 0 0 4px;
    font-size: 18px;
}

.email-verification-warning p {
    margin: 0;
    font-size: 14px;
    color: #6B6B6B;
}

.email-verification-warning .btn {
    padding: 10px 24px;
    font-size: 14px;
    border-radius: 50px;
    flex-shrink: 0;
}

#dashboard-resend-message {
    margin: 10px 0 20px;
    display: none;
    padding: 12px;
    border-radius: 10px;
}

#dashboard-resend-message.success {
    color: #2E7D32;
    background: #E8F5E9;
    display: block;
}

#dashboard-resend-message.error {
    color: #C62828;
    background: #FFEBEE;
    display: block;
}

/* Хедер дашборда */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 24px;
}

.dashboard-header-left {
    flex: 1;
}

.dashboard-title {
    font-size: clamp(24px, 3vw, 32px);
    margin: 0 0 4px;
}

.dashboard-contact {
    color: #888;
    font-size: 15px;
    margin: 0;
    word-break: break-word;
}

.dashboard-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Бонус-виджет */
.bonus-widget {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    background: linear-gradient(135deg, #FFF8E1, #FFF3CD);
    border-radius: 16px;
    border: 1px solid #FFE082;
    flex-wrap: wrap;
}

.bonus-widget-icon {
    font-size: 24px;
}

.bonus-widget-info {
    display: flex;
    flex-direction: column;
}

.bonus-widget-amount {
    font-size: 22px;
    font-weight: 700;
    color: #F57F17;
    line-height: 1;
}

.bonus-widget-label {
    font-size: 11px;
    color: #888;
}

.bonus-widget-rate {
    font-size: 11px;
    color: #666;
    background: #fff;
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid #FFE082;
}

.btn-logout {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    padding: 10px 18px;
}

/* Табы */
.account-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.account-tabs::-webkit-scrollbar {
    display: none;
}

.account-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: transparent;
    border: 1px solid transparent;
    color: #999;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px 8px 0 0;
    transition: all 0.2s;
    font-family: inherit;
    white-space: nowrap;
}

.account-tab:hover {
    color: #555;
    background: rgba(0,0,0,0.02);
}

.account-tab.active {
    color: #E65476;
    background: #fff;
    border-color: #eee;
    border-bottom-color: #fff;
    font-weight: 600;
}

.account-tab i {
    font-size: 18px;
}

/* Контент */
#account-content {
    background: transparent;
    border: none;
    border-radius: 0 12px 12px 12px;
    padding: 0;
    min-height: 300px;
    position: relative;
}

#account-content.loading {
    opacity: 0.6;
    pointer-events: none;
}

.account-loader {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#account-content.loading .account-loader {
    display: flex;
}

/* Сетка */
.account-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.account-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Карточки */
.account-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 0px 12px;
    padding: 24px;
}

.account-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #333;
}

.account-empty {
    text-align: center;
    padding: 40px 20px;
}

.account-empty-icon {
    font-size: 56px;
    display: block;
    margin-bottom: 16px;
}

.account-empty p {
    margin-bottom: 16px;
    color: #888;
}

/* Бонусы */
.bonus-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.bonus-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #fafafa;
    border-radius: 10px;
    border: 1px solid #f0f0f0;
    transition: all 0.2s;
}

.bonus-card:hover {
    border-color: #FFE082;
    background: #FFFDE7;
}

.bonus-card.expiring {
    border-color: #FFCDD2;
    background: #FFF5F5;
}

.bonus-card-icon {
    font-size: 24px;
}

.bonus-card-info {
    flex: 1;
}

.bonus-card-amount {
    font-weight: 700;
    font-size: 16px;
    color: #333;
    display: block;
}

.bonus-card-type {
    font-size: 12px;
    color: #888;
}

.bonus-card-expires {
    font-size: 12px;
    color: #aaa;
    white-space: nowrap;
}

.account-empty-text {
    color: #999;
    font-size: 14px;
    text-align: center;
    padding: 30px 0;
}

.account-bonus-info {
    padding: 12px 14px;
    background: #F5F5F5;
    border-radius: 8px;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

/* Таблица истории */
.account-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.account-table th {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 2px solid #eee;
    color: #888;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.account-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #f5f5f5;
    vertical-align: middle;
}

.text-green {
    color: #2E7D32;
    font-weight: 600;
}

.text-red {
    color: #C62828;
    font-weight: 600;
}

/* Пагинация */
.account-pagination {
    display: flex;
    gap: 6px;
    margin-top: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-link {
    padding: 6px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    color: #555;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
}

.page-link:hover {
    border-color: #E65476;
    color: #E65476;
}

.page-link.active {
    background: #E65476;
    color: #fff;
    border-color: #E65476;
}

/* Заказы */
.order-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 14px;
    transition: box-shadow 0.2s;
}

.order-card:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 8px;
}

.order-number {
    font-weight: 600;
    font-size: 15px;
}

.order-date {
    font-size: 13px;
    color: #999;
    margin-left: 8px;
}

.order-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.order-status.completed {
    background: #E8F5E9;
    color: #2E7D32;
}

.order-status.processing {
    background: #FFF3E0;
    color: #E65100;
}

.order-status.cancelled {
    background: #FFEBEE;
    color: #C62828;
}

.order-status.pending {
    background: #F5F5F5;
    color: #888;
}

.order-items {
    margin-bottom: 14px;
}

.order-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px 0;
    border-bottom: 1px solid #f9f9f9;
}

.order-item:last-child {
    border-bottom: none;
}

.order-item-image {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 8px;
    background: #f5f5f5;
    flex-shrink: 0;
}

.order-item-name {
    font-size: 14px;
    font-weight: 500;
}

.order-item-meta {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}

.order-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-total {
    font-weight: 700;
    font-size: 16px;
    color: #333;
}

/* Профиль */
.profile-field {
    margin-bottom: 18px;
}

.profile-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 13px;
    color: #666;
}

.profile-field input,
.profile-field textarea {
    width: 100%;
    max-width: 100%;
    padding: 10px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.profile-field input:focus,
.profile-field textarea:focus {
    outline: none;
    border-color: #E65476;
    box-shadow: 0 0 0 3px rgba(230,84,118,0.1);
}

.profile-field textarea {
    resize: vertical;
}

/* Памятные даты */
.account-dates-hint {
    font-size: 13px;
    color: #999;
    margin-bottom: 20px;
    line-height: 1.5;
}

.account-date-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.account-date-row input[type="text"] {
    flex: 1;
    min-width: 140px;
    padding: 10px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
}

.account-date-row input[type="date"] {
    width: 170px;
    padding: 10px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
}

.date-status {
    font-size: 20px;
    width: 36px;
    text-align: center;
}

/* Скрытые поля */
#account-name-val,
#account-phone,
#account-email,
#account-address {
    display: none;
}

/* ===== АДАПТИВ ДАШБОРДА ===== */

@media (max-width: 992px) {
    .account-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .dashboard-header-right {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-logout {
        width: 100%;
        justify-content: center;
    }
    
    .bonus-widget {
        justify-content: center;
    }
    
    .email-verification-warning {
        flex-direction: column;
        text-align: center;
    }
    
    .email-verification-warning .warning-content {
        flex-direction: column;
    }
    
    .email-verification-warning .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .account-dashboard {
        padding: 20px 0 40px;
    }
    
    .dashboard-title {
        font-size: 22px;
    }
    
    .dashboard-contact {
        font-size: 13px;
    }
    
    .bonus-widget {
        padding: 8px 14px;
        gap: 8px;
    }
    
    .bonus-widget-amount {
        font-size: 18px;
    }
    
    .bonus-widget-icon {
        font-size: 20px;
    }
    
    .account-tab {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .account-tab i {
        font-size: 16px;
    }
    
    .account-card {
        padding: 16px;
    }
    
    .account-card h3 {
        font-size: 1.1rem;
    }
    
    .order-card {
        padding: 12px 14px;
    }
    
    .order-card-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .order-status {
        font-size: 11px;
        padding: 3px 10px;
    }
    
    .account-table {
        font-size: 13px;
    }
    
    .account-table th,
    .account-table td {
        padding: 8px 8px;
    }
    
    .account-date-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .account-date-row input[type="date"] {
        width: 100%;
    }
    
    .date-status {
        width: auto;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .account-dashboard {
        padding: 12px 0 30px;
    }
    
    .container {
        padding: 0 12px;
    }
    
    .dashboard-title {
        font-size: 20px;
    }
    
    .bonus-widget {
        flex-wrap: wrap;
        justify-content: center;
        padding: 8px 12px;
    }
    
    .bonus-widget-amount {
        font-size: 16px;
    }
    
    .account-tab {
        padding: 6px 10px;
        font-size: 12px;
        gap: 4px;
    }
    
    .account-tab i {
        font-size: 14px;
    }
    
    .account-card {
        padding: 12px;
        border-radius: 8px;
    }
    
    .account-card h3 {
        font-size: 1rem;
        margin-bottom: 14px;
    }
    
    .bonus-card {
        padding: 10px 12px;
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .bonus-card-icon {
        font-size: 20px;
    }
    
    .bonus-card-amount {
        font-size: 14px;
    }
    
    .bonus-card-expires {
        font-size: 11px;
    }
    
    .order-item-image {
        width: 36px;
        height: 36px;
    }
    
    .order-item-name {
        font-size: 13px;
    }
    
    .order-total {
        font-size: 14px;
    }
    
    .profile-field input,
    .profile-field textarea {
        font-size: 14px;
        padding: 8px 12px;
    }
    
    .account-table {
        font-size: 12px;
    }
    
    .account-table th,
    .account-table td {
        padding: 6px 6px;
    }
    
    .account-table th {
        font-size: 10px;
    }
    
    .page-link {
        padding: 4px 10px;
        font-size: 12px;
    }
    
    .email-verification-warning {
        padding: 16px;
    }
    
    .email-verification-warning h3 {
        font-size: 16px;
    }
    
    .email-verification-warning p {
        font-size: 13px;
    }
}

/* ===== СПИННЕР ===== */
.flower-spinner {
    position: relative;
    width: 48px;
    height: 48px;
    margin: 0 auto;
}

.flower-spinner .petal {
    position: absolute;
    width: 16px;
    height: 16px;
    background: #E65476;
    border-radius: 50% 0 50% 0;
    top: 50%;
    left: 50%;
    opacity: 0.4;
    animation: flowerSpin 1.5s ease-in-out infinite;
}

.flower-spinner .petal:nth-child(1) {
    transform: translate(-50%, -50%) rotate(0deg) translateY(-14px);
    animation-delay: 0s;
}

.flower-spinner .petal:nth-child(2) {
    transform: translate(-50%, -50%) rotate(60deg) translateY(-14px);
    animation-delay: 0.1s;
}

.flower-spinner .petal:nth-child(3) {
    transform: translate(-50%, -50%) rotate(120deg) translateY(-14px);
    animation-delay: 0.2s;
}

.flower-spinner .petal:nth-child(4) {
    transform: translate(-50%, -50%) rotate(180deg) translateY(-14px);
    animation-delay: 0.3s;
}

.flower-spinner .petal:nth-child(5) {
    transform: translate(-50%, -50%) rotate(240deg) translateY(-14px);
    animation-delay: 0.4s;
}

.flower-spinner .petal:nth-child(6) {
    transform: translate(-50%, -50%) rotate(300deg) translateY(-14px);
    animation-delay: 0.5s;
}

@keyframes flowerSpin {
    0%, 100% {
        opacity: 0.3;
        transform: rotate(0deg) translateY(-14px) scale(0.8);
    }
    50% {
        opacity: 1;
        transform: rotate(180deg) translateY(-14px) scale(1.2);
    }
}

/* ===== ТОСТ-УВЕДОМЛЕНИЕ ДЛЯ ИЗБРАННОГО (GLASSMORPHISM) ===== */
.wishlist-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(255, 255, 255, 0.70);
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    color: var(--color-dark);
    padding: 20px 32px;
    border-radius: var(--radius-lg);
    font-size: 15px;
    line-height: 1.6;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.4);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 99999;
    max-width: 92%;
    width: auto;
    min-width: 300px;
    text-align: center;
    font-family: var(--font-body);
    pointer-events: none;
}

.wishlist-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ===== УСПЕХ — РОЗОВЫЙ GLASS ===== */
.wishlist-toast.toast-success {
    background: rgba(255, 240, 243, 0.75);
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    border-color: rgba(230, 84, 118, 0.20);
    box-shadow: 
        0 8px 32px rgba(230, 84, 118, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.wishlist-toast.toast-success .toast-icon {
    color: #E65476;
}

.wishlist-toast.toast-success .toast-title {
    color: #E65476;
}

.wishlist-toast.toast-success .toast-text {
    color: #3D1A24;
}

/* ===== ОШИБКА / НЕАВТОРИЗОВАН — БОЛЕЕ НАСЫЩЕННЫЙ РОЗОВЫЙ GLASS ===== */
.wishlist-toast.toast-error {
    background: rgba(255, 240, 243, 0.85);
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    border-color: rgba(230, 84, 118, 0.30);
    box-shadow: 
        0 8px 32px rgba(230, 84, 118, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.wishlist-toast.toast-error .toast-icon {
    color: #E65476;
}

.wishlist-toast.toast-error .toast-title {
    color: #C62828;
}

.wishlist-toast.toast-error .toast-text {
    color: #3D1A24;
}

/* ===== ОБЩАЯ СТРУКТУРА ===== */
.wishlist-toast .toast-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 4px;
    line-height: 1.2;
}

.wishlist-toast .toast-title {
    font-weight: 700;
    font-size: 17px;
    color: var(--color-dark);
    display: block;
    margin-bottom: 2px;
}

.wishlist-toast .toast-text {
    color: var(--color-gray);
    font-size: 14px;
}

.wishlist-toast .toast-text strong {
    color: #E65476;
    font-weight: 700;
}

.wishlist-toast a {
    color: #E65476;
    text-decoration: none;
    font-weight: 600;
    pointer-events: auto;
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition-fast);
    display: inline-block;
}

.wishlist-toast a:hover {
    border-bottom-color: #E65476;
    color: #D43F62;
}

.wishlist-toast a + a {
    margin-left: 4px;
}

/* ===== ТОНКАЯ ГРАНИЦА GLASS ===== */
.wishlist-toast::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius-lg);
    padding: 1px;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.6) 0%,
        rgba(255, 255, 255, 0.1) 40%,
        rgba(255, 255, 255, 0.05) 60%,
        rgba(255, 255, 255, 0.3) 100%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.wishlist-toast.toast-success::before {
    background: linear-gradient(
        135deg,
        rgba(230, 84, 118, 0.25) 0%,
        rgba(230, 84, 118, 0.05) 40%,
        rgba(230, 84, 118, 0.02) 60%,
        rgba(230, 84, 118, 0.15) 100%
    );
}

.wishlist-toast.toast-error::before {
    background: linear-gradient(
        135deg,
        rgba(230, 84, 118, 0.35) 0%,
        rgba(230, 84, 118, 0.08) 40%,
        rgba(230, 84, 118, 0.03) 60%,
        rgba(230, 84, 118, 0.20) 100%
    );
}

/* ===== АДАПТИВ ===== */
@media (max-width: 480px) {
    .wishlist-toast {
        padding: 16px 20px;
        font-size: 14px;
        min-width: auto;
        width: calc(100% - 32px);
        bottom: 16px;
        border-radius: var(--radius-md);
    }
    
    .wishlist-toast .toast-icon {
        font-size: 28px;
    }
    
    .wishlist-toast .toast-title {
        font-size: 15px;
    }
    
    .wishlist-toast .toast-text {
        font-size: 13px;
    }
    
    .wishlist-toast::before {
        border-radius: var(--radius-md);
    }
}
/* ==========================================
   ИЗБРАННОЕ В ЛИЧНОМ КАБИНЕТЕ — СТИЛИЗАЦИЯ
   ========================================== */

/* Карточка избранного в ЛК */
.account-card.wishlist-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition-base);
}

.account-card.wishlist-card:hover {
    box-shadow: var(--shadow-md);
}

/* Заголовок избранного */
.wishlist-header {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-border);
}

.wishlist-header h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    color: var(--color-dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wishlist-header h3 .ph-heart {
    color: #E65476;
    font-size: 24px;
}

.wishlist-total {
    font-size: 13px;
    color: var(--color-gray);
    background: var(--color-light);
    padding: 4px 14px;
    border-radius: var(--radius-full);
    font-weight: 500;
}

.wishlist-clear-btn {
    margin-left: auto;
    color: #C62828;
    border-color: #FFCDD2;
    font-size: 12px;
    padding: 6px 16px;
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: var(--font-body);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.wishlist-clear-btn:hover {
    background: #FFEBEE;
    border-color: #EF9A9A;
    color: #C62828;
}

/* Сетка избранного */
.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.wishlist-grid .petal-card {
    position: relative;
    background: var(--color-white);
    border-radius: var(--radius-md);
    overflow: visible;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--color-border);
}

.wishlist-grid .petal-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.wishlist-grid .petal-card.removing {
    opacity: 0.5;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Кнопка удаления из избранного в ЛК */
.wishlist-remove-item {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--color-border);
    color: var(--color-gray-light);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    z-index: 5;
    backdrop-filter: blur(4px);
}

.wishlist-remove-item:hover {
    background: #FFEBEE;
    border-color: #EF9A9A;
    color: #C62828;
    transform: scale(1.1);
}

/* Карточка товара в избранном (переопределение для ЛК) */
.wishlist-grid .petal-card .petal-card-image {
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--color-light);
}

.wishlist-grid .petal-card .petal-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.wishlist-grid .petal-card:hover .petal-card-image img {
    transform: scale(1.05);
}

.wishlist-grid .petal-card .petal-card-body {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.wishlist-grid .petal-card .petal-card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-dark);
    line-height: 1.3;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 36px;
}

.wishlist-grid .petal-card .petal-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
    font-family: Inter;
    font-size: 22px;
}

.wishlist-grid .petal-card .petal-card-title a:hover {
    color: #E65476;
}

.wishlist-grid .petal-card .petal-card-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-dark);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.wishlist-grid .petal-card .petal-price-old {
    font-size: 13px;
    color: var(--color-gray-light);
    text-decoration: line-through;
    font-weight: 400;
}

.wishlist-grid .petal-card .petal-price-new {
    color: #E65476;
}

.wishlist-grid .petal-card .petal-price-current {
    color: var(--color-dark);
}

.wishlist-grid .petal-card .petal-price-out-of-stock {
    color: var(--color-gray-light);
    font-weight: 500;
    font-size: 13px;
}

.wishlist-grid .petal-card .petal-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 8px 12px;
    background: #E65476;
    color: var(--color-white);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    transition: all var(--transition-base);
    margin-top: 8px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(230, 84, 118, 0.15);
}

.wishlist-grid .petal-card .petal-card-btn:hover {
    background: #D43F62;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(230, 84, 118, 0.25);
}

.wishlist-grid .petal-card .petal-card-btn.out-of-stock-btn {
    background: var(--color-gray);
    box-shadow: none;
}

.wishlist-grid .petal-card .petal-card-btn.out-of-stock-btn:hover {
    background: var(--color-gray);
    opacity: 0.8;
    transform: none;
}

/* Пустое избранное */
.wishlist-empty-message {
    text-align: center;
    padding: 48px 20px;
    font-size: 16px;
    color: var(--color-gray);
    grid-column: 1 / -1;
}

.wishlist-empty-message .empty-icon {
    font-size: 56px;
    display: block;
    margin-bottom: 16px;
    opacity: 0.6;
}

/* Счётчик в табе */
#wishlist-tab-count {
    font-size: 12px;
    color: var(--color-gray);
    font-weight: 400;
    background: var(--color-light);
    padding: 1px 8px;
    border-radius: var(--radius-full);
}

/* ===== АДАПТИВ ===== */
@media (max-width: 992px) {
    .wishlist-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
}

@media (max-width: 768px) {
    .wishlist-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .wishlist-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 10px;
    }
    
    .wishlist-clear-btn {
        margin-left: 0;
        justify-content: center;
    }
    
    .wishlist-header h3 {
        justify-content: center;
        font-size: 18px;
    }
    
    .wishlist-grid .petal-card .petal-card-title {
        font-size: 13px;
        min-height: 32px;
    }
    
    .wishlist-grid .petal-card .petal-card-price {
        font-size: 14px;
    }
    
    .wishlist-grid .petal-card .petal-card-btn {
        font-size: 12px;
        padding: 6px 10px;
    }
}

@media (max-width: 480px) {
    .account-card.wishlist-card {
        padding: 12px;
    }
    
    .wishlist-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .wishlist-remove-item {
        width: 26px;
        height: 26px;
        font-size: 12px;
        top: 6px;
        right: 6px;
    }
    
    .wishlist-grid .petal-card .petal-card-body {
        padding: 8px 10px 10px;
    }
    
    .wishlist-grid .petal-card .petal-card-title {
        font-size: 12px;
        min-height: 28px;
    }
    
    .wishlist-grid .petal-card .petal-card-price {
        font-size: 13px;
    }
    
    .wishlist-grid .petal-card .petal-card-btn {
        font-size: 11px;
        padding: 5px 8px;
    }
    
    .wishlist-empty-message {
        padding: 32px 16px;
        font-size: 14px;
    }
    
    .wishlist-empty-message .empty-icon {
        font-size: 40px;
    }
}