/* ============================================
   BHSTORE PROFILE - Премиум дизайн профиля
   Авторская разработка | Уникальная архитектура
   ============================================ */

/* ========== ДИЗАЙН-СИСТЕМА ПРОФИЛЯ ========== */
:root {
    --profile-accent: #FF6B35;
    --profile-accent-secondary: #F7931E;
    --profile-surface: rgba(255, 255, 255, 0.02);
    --profile-surface-hover: rgba(255, 255, 255, 0.04);
    --profile-border: rgba(255, 255, 255, 0.04);
    --profile-border-hover: rgba(255, 107, 53, 0.2);
    --profile-glow: 0 0 40px rgba(255, 107, 53, 0.08), 0 0 80px rgba(255, 107, 53, 0.03);
    --profile-transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

/* ========== КОНТЕЙНЕР ========== */
.profile-container {
    max-width: 1000px;
    margin: 0 auto 80px;
    padding: 0 24px;
    position: relative;
    animation: fadeSlideUp 0.6s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

/* ========== ШАПКА ПРОФИЛЯ ========== */
.profile-header {
    position: relative;
    background: var(--profile-surface);
    border: 1px solid var(--profile-border);
    border-radius: 28px;
    padding: 40px;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 36px;
    overflow: hidden;
    transition: all var(--profile-transition);
}

.profile-header:hover {
    border-color: var(--profile-border-hover);
    box-shadow: var(--profile-glow);
}

/* Фоновое свечение */
.profile-header::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.06), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Аватар */
.profile-avatar-wrapper {
    position: relative;
    width: 150px;
    height: 150px;
    flex-shrink: 0;
    z-index: 2;
}

.profile-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid rgba(255, 107, 53, 0.3);
    object-fit: cover;
    transition: all var(--profile-transition);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.profile-avatar:hover {
    transform: scale(1.04);
    border-color: var(--profile-accent);
    box-shadow: 0 12px 40px rgba(255, 107, 53, 0.2);
}

/* Бейдж на аватаре */
.avatar-badge {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 42px;
    height: 42px;
    background: var(--neutral-900);
    border: 2px solid var(--profile-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    animation: avatarBadgeFloat 3s ease-in-out infinite;
}

.avatar-badge img {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: contain;
}

/* Информация */
.profile-info {
    flex: 1;
    z-index: 2;
}

.profile-info h2 {
    font-family: 'Clash Display', 'Inter', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: white;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-info-username {
    color: #A09CAE;
    font-size: 0.95rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-info-username i {
    color: var(--profile-accent);
}

/* Бейджи */
.badges-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.badge:hover {
    transform: translateY(-2px);
}

.badge img {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: contain;
}

.badge-verified {
    background: rgba(88, 101, 242, 0.12);
    border-color: rgba(88, 101, 242, 0.25);
    color: #5865F2;
}

.badge-partner {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.25);
    color: #F59E0B;
}

.badge-buyer {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.25);
    color: #10B981;
}

.badge-early {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.25);
    color: #EF4444;
}

.badge-vip {
    background: rgba(139, 92, 246, 0.12);
    border-color: rgba(139, 92, 246, 0.25);
    color: #8B5CF6;
}

/* ========== СТАТИСТИКА ========== */
.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--profile-surface);
    border: 1px solid var(--profile-border);
    border-radius: 20px;
    padding: 24px;
    text-align: center;
    transition: all var(--profile-transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--profile-accent), var(--profile-accent-secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-card:hover {
    border-color: var(--profile-border-hover);
    transform: translateY(-4px);
    box-shadow: var(--profile-glow);
}

.stat-card-icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 12px;
    background: rgba(255, 107, 53, 0.08);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--profile-accent);
    transition: all 0.3s ease;
}

.stat-card:hover .stat-card-icon {
    background: rgba(255, 107, 53, 0.15);
    transform: scale(1.08);
}

.stat-card-value {
    font-family: 'Clash Display', 'Inter', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
}

.stat-card-label {
    font-size: 0.8rem;
    color: #7C7888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========== СЕКЦИЯ БАЛАНСА ========== */
.balance-section {
    background: var(--profile-surface);
    border: 1px solid var(--profile-border);
    border-radius: 24px;
    padding: 32px;
    margin-bottom: 28px;
    transition: all var(--profile-transition);
}

.balance-section:hover {
    border-color: rgba(16, 185, 129, 0.2);
}

.balance-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.balance-icon {
    width: 44px;
    height: 44px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #10B981;
}

.balance-header h2 {
    font-family: 'Clash Display', 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.balance-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.balance-amount-wrapper {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.balance-label {
    font-size: 0.95rem;
    color: #A09CAE;
}

.balance-amount {
    font-family: 'Clash Display', 'Inter', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #10B981, #34D399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.balance-actions {
    display: flex;
    gap: 12px;
}

/* ========== СЕКЦИИ ========== */
.profile-section {
    background: var(--profile-surface);
    border: 1px solid var(--profile-border);
    border-radius: 24px;
    padding: 32px;
    margin-bottom: 28px;
    transition: all var(--profile-transition);
}

.profile-section:hover {
    border-color: rgba(255, 255, 255, 0.08);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.section-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--profile-accent);
}

.section-header h2 {
    font-family: 'Clash Display', 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

/* ========== ЧАТ ========== */
#supportChat {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

#chatMessages {
    height: 400px;
    overflow-y: auto;
    padding: 20px;
    scroll-behavior: smooth;
}

.message-wrapper {
    margin-bottom: 16px;
    max-width: 70%;
    animation: messageSlide 0.3s ease-out;
}

.message-wrapper.user {
    margin-left: auto;
}

.message-bubble {
    padding: 12px 18px;
    border-radius: 18px;
    position: relative;
    word-wrap: break-word;
    font-size: 0.9rem;
    line-height: 1.5;
}

.message-bubble.user {
    background: linear-gradient(135deg, var(--profile-accent), var(--profile-accent-secondary));
    color: white;
    border-bottom-right-radius: 6px;
}

.message-bubble.admin {
    background: rgba(255, 255, 255, 0.04);
    color: white;
    border-bottom-left-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.message-time {
    font-size: 0.7rem;
    color: #5C5868;
    margin-top: 4px;
}

.message-wrapper.user .message-time {
    text-align: right;
}

.chat-input-container {
    display: flex;
    gap: 10px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

#chatMessageInput {
    flex: 1;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid rgba(255, 255, 255, 0.06);
    border-radius: 50px;
    color: white;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    outline: none;
}

#chatMessageInput:focus {
    border-color: var(--profile-accent);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.btn-send {
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, var(--profile-accent), var(--profile-accent-secondary));
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.btn-send:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.3);
}

/* ========== ПРОМОКОДЫ ========== */
.promocode-section {
    background: var(--profile-surface);
    border: 1px solid var(--profile-border);
    border-radius: 24px;
    padding: 32px;
    margin-bottom: 28px;
}

.promocode-input-container {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

#promocodeInput {
    flex: 1;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid rgba(255, 255, 255, 0.06);
    border-radius: 50px;
    color: white;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    outline: none;
}

#promocodeInput:focus {
    border-color: #F59E0B;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.btn-promocode {
    padding: 14px 28px;
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
}

.btn-promocode:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3);
}

.promocode-message {
    padding: 12px 18px;
    border-radius: 14px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: fadeSlideUp 0.3s ease-out;
    margin-bottom: 16px;
}

.promocode-message.success {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #10B981;
}

.promocode-message.error {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #EF4444;
}

/* ========== ЗАКАЗЫ ========== */
.orders-list {
    background: var(--profile-surface);
    border: 1px solid var(--profile-border);
    border-radius: 24px;
    padding: 32px;
}

.order-item {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-left: 3px solid var(--profile-accent);
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 12px;
    transition: all var(--profile-transition);
    animation: fadeSlideUp 0.5s ease-out forwards;
    opacity: 0;
}

.order-item:hover {
    border-left-color: var(--profile-accent-secondary);
    transform: translateX(4px);
    background: rgba(255, 255, 255, 0.025);
}

.order-id {
    font-family: 'JetBrains Mono', 'Inter', monospace;
    font-size: 0.9rem;
    color: var(--profile-accent);
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.order-product {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
}

.order-price {
    font-family: 'Clash Display', 'Inter', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #10B981;
    margin-bottom: 12px;
}

.order-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 0.85rem;
    color: #7C7888;
    flex-wrap: wrap;
    gap: 10px;
}

/* Статусы */
.status-badge {
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.status-pending {
    background: rgba(245, 158, 11, 0.1);
    color: #F59E0B;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.status-registered {
    background: rgba(59, 130, 246, 0.1);
    color: #3B82F6;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.status-completed {
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-cancelled {
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* ========== МОДАЛКА ========== */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: var(--neutral-900);
    border-radius: 24px;
    padding: 36px;
    max-width: 480px;
    width: 90%;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--profile-border);
    animation: modalReveal 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-content h2 {
    font-family: 'Clash Display', 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-content p {
    color: #A09CAE;
    margin-bottom: 24px;
    line-height: 1.6;
}

.modal-actions {
    display: flex;
    gap: 12px;
}

/* ========== КНОПКИ ========== */
.btn-primary {
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--profile-accent), var(--profile-accent-secondary));
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.35);
}

.btn-secondary {
    padding: 14px 28px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

/* ========== ПУСТОЕ СОСТОЯНИЕ ========== */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: #7C7888;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.4;
}

.empty-state p {
    font-size: 1rem;
    margin-bottom: 20px;
}

/* ========== АНИМАЦИИ ========== */
@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalReveal {
    from { opacity: 0; transform: scale(0.95) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

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

@keyframes avatarBadgeFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* Задержки для заказов */
.order-item:nth-child(1) { animation-delay: 0.05s; }
.order-item:nth-child(2) { animation-delay: 0.1s; }
.order-item:nth-child(3) { animation-delay: 0.15s; }
.order-item:nth-child(4) { animation-delay: 0.2s; }
.order-item:nth-child(5) { animation-delay: 0.25s; }

/* ========== АДАПТИВНОСТЬ ========== */
@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
        padding: 28px 24px;
    }
    
    .profile-avatar-wrapper {
        width: 120px;
        height: 120px;
    }
    
    .profile-info h2 {
        font-size: 1.5rem;
        justify-content: center;
    }
    
    .badges-container {
        justify-content: center;
    }
    
    .profile-stats {
        grid-template-columns: 1fr;
    }
    
    .balance-body {
        flex-direction: column;
        text-align: center;
    }
    
    .balance-amount {
        font-size: 2.2rem;
    }
    
    .promocode-input-container {
        flex-direction: column;
    }
    
    .chat-input-container {
        flex-direction: column;
    }
    
    .btn-send {
        width: 100%;
        border-radius: 50px;
    }
    
    .message-wrapper {
        max-width: 90%;
    }
    
    .order-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .modal-content {
        padding: 28px 24px;
    }
    
    .modal-actions {
        flex-direction: column;
    }
}

/* ========== СКРОЛЛБАР ЧАТА ========== */
#chatMessages::-webkit-scrollbar {
    width: 4px;
}

#chatMessages::-webkit-scrollbar-track {
    background: transparent;
}

#chatMessages::-webkit-scrollbar-thumb {
    background: var(--profile-accent);
    border-radius: 2px;
}

/* ========== ДОСТУПНОСТЬ ========== */
@media (prefers-reduced-motion: reduce) {
    .profile-container,
    .order-item,
    .message-wrapper,
    .modal-content {
        animation: none !important;
        transition: none !important;
    }
} 

/* ========== ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ДЛЯ НОВЫХ ФУНКЦИЙ ========== */

/* Кнопка настроек */
.btn-settings {
    padding: 10px 20px;
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 50px;
    color: var(--profile-accent);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 12px;
}

.btn-settings:hover {
    background: rgba(255, 107, 53, 0.2);
    transform: translateY(-2px);
}

/* Категории настроек */
.settings-category {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
}

.settings-category h3 {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: 0.3s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background: linear-gradient(135deg, var(--profile-accent), var(--profile-accent-secondary));
}

input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

/* Privacy Item */
.privacy-item {
    transition: all 0.3s ease;
}

.privacy-item:hover {
    background: rgba(255, 255, 255, 0.02);
    padding-left: 12px;
}

/* Кнопки в опасной зоне */
.btn-danger {
    padding: 12px 20px;
    background: rgba(237, 66, 69, 0.15);
    border: 1px solid rgba(237, 66, 69, 0.3);
    border-radius: 12px;
    color: #ED4245;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    font-family: 'Inter', sans-serif;
}

.btn-danger:hover {
    background: rgba(237, 66, 69, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(237, 66, 69, 0.2);
}

/* Кнопка сохранения настроек */
.btn-save-privacy {
    transition: all 0.3s ease;
}

.btn-save-privacy:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(254, 231, 92, 0.3);
}

/* Кнопки заказов */
.order-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.btn-order-details {
    padding: 8px 16px;
    background: rgba(88, 101, 242, 0.1);
    border: 1px solid rgba(88, 101, 242, 0.2);
    border-radius: 8px;
    color: #5865F2;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-order-details:hover {
    background: rgba(88, 101, 242, 0.2);
    transform: translateY(-1px);
}

.btn-order-cancel {
    padding: 8px 16px;
    background: rgba(237, 66, 69, 0.1);
    border: 1px solid rgba(237, 66, 69, 0.2);
    border-radius: 8px;
    color: #ED4245;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-order-cancel:hover {
    background: rgba(237, 66, 69, 0.2);
    transform: translateY(-1px);
}

/* Информация о заказе */
.order-date {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.8rem;
    color: #7C7888;
}

/* История промокодов */
.promocodes-history-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 12px;
}

.promocode-history-item {
    transition: all 0.3s ease;
}

.promocode-history-item:hover {
    transform: translateX(4px);
    background: rgba(255, 255, 255, 0.03);
}

/* Активные промокоды */
.active-promocode-item {
    transition: all 0.3s ease;
}

.active-promocode-item:hover {
    transform: translateX(4px);
    border-color: rgba(254, 231, 92, 0.5);
}

.btn-remove-promo {
    transition: all 0.3s ease;
}

.btn-remove-promo:hover {
    background: rgba(237, 66, 69, 0.15);
    transform: scale(1.05);
}

/* Пустые состояния промокодов */
.empty-promocodes {
    transition: all 0.3s ease;
}

.empty-promocodes:hover {
    background: rgba(255, 255, 255, 0.02);
    transform: translateY(-2px);
}

/* Инпуты в настройках */
.form-group input {
    transition: all 0.3s ease;
}

.form-group input:focus {
    border-color: var(--profile-accent);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-group input:read-only {
    cursor: not-allowed;
    opacity: 0.7;
}

/* Страница ошибки */
.error-page {
    text-align: center;
    padding: 80px 20px;
    background: var(--profile-surface);
    border-radius: 32px;
    border: 1px solid var(--profile-border);
}

.error-page i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.8;
}

.error-page h2 {
    font-family: 'Clash Display', 'Inter', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
}

.error-page p {
    color: #A09CAE;
    margin-bottom: 24px;
}

/* Скрытые секции */
.hidden {
    display: none;
}

/* Форма в модалке удаления */
.modal-content .form-group {
    margin-bottom: 16px;
}

.modal-content .form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.85rem;
    font-weight: 500;
}

.modal-content .form-group input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: white;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.modal-content .form-group input:focus {
    outline: none;
    border-color: var(--profile-accent);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

/* Индикатор загрузки чата */
#supportChat .fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
    .order-actions {
        flex-direction: column;
    }
    
    .btn-order-details,
    .btn-order-cancel {
        width: 100%;
        justify-content: center;
    }
    
    .settings-category {
        padding: 16px;
    }
    
    .privacy-item {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .error-page {
        padding: 40px 20px;
    }
    
    .error-page h2 {
        font-size: 1.4rem;
    }
    
    .modal-content {
        max-width: 95%;
        padding: 20px;
    }
}

/* Анимация появления */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.order-item {
    animation: slideIn 0.3s ease-out forwards;
}

/* Эффект свечения для активных элементов */
.btn-primary:active,
.btn-promocode:active,
.btn-send:active {
    transform: scale(0.98);
}

/* Улучшенный скроллбар для модалок */
.modal-content::-webkit-scrollbar {
    width: 4px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--profile-accent);
    border-radius: 2px;
}

/* Поддержка dark mode */
@media (prefers-color-scheme: dark) {
    .profile-container {
        color-scheme: dark;
    }
}

.status-processing {
    background: #5865F2;
    color: white;
}

.status-processing i {
    color: white;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}