/* ========== СТРАНИЦА АККАУНТА ========== */

/* Общие отступы */
main {
    padding: 40px 0;
}

/* Вкладки авторизации */
.auth-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.auth-tab {
    background: transparent;
    border: none;
    color: var(--text-gray);
    font-size: 18px;
    font-weight: 600;
    padding: 10px 30px;
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: 2px solid transparent;
}

.auth-tab.active {
    color: var(--accent-secondary);
    border-bottom-color: var(--accent-secondary);
}

.auth-form {
    display: none;
    max-width: 450px;
    margin: 0 auto;
    padding: 0 20px;
}

.auth-form.active {
    display: block;
}

.auth-form .section-title {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.auth-form input,
.profile-form input,
.password-change input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(238, 167, 37, 0.3);
    border-radius: 12px;
    color: var(--text-light);
    font-family: 'Guidy', Arial, sans-serif;
    font-size: 15px;
    transition: all 0.3s;
}

.auth-form input:focus,
.profile-form input:focus,
.password-change input:focus {
    outline: none;
    border-color: var(--accent-secondary);
    box-shadow: 0 0 5px rgba(238, 167, 37, 0.3);
}

.auth-form input::placeholder,
.profile-form input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.auth-links {
    text-align: center;
    margin-top: 25px;
}

.auth-links a {
    color: var(--accent-secondary);
    text-decoration: none;
    font-size: 14px;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* Личный кабинет */
.cabinet-header {
    display: flex;
    align-items: center;
    gap: 35px;
    margin-bottom: 50px;
    flex-wrap: wrap;
    padding: 25px;
    background: rgba(15, 35, 48, 0.4);
    border-radius: 24px;
}

.cabinet-avatar {
    position: relative;
    width: 100px;
    height: 100px;
}

.cabinet-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-secondary);
}

.avatar-upload {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--accent-primary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
}

.avatar-upload:hover {
    transform: scale(1.05);
    background: var(--accent-secondary);
}

.cabinet-welcome h1 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.cabinet-welcome span {
    color: var(--accent-secondary);
}

/* Кнопка "Выйти" */
#logoutBtn {
    background: linear-gradient(145deg, rgba(229, 115, 39, 0.15), rgba(238, 167, 37, 0.1));
    border: 2px solid var(--accent-secondary);
    color: var(--accent-secondary);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
}

#logoutBtn:hover {
    background: linear-gradient(145deg, var(--accent-primary), var(--accent-secondary));
    color: var(--bg-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(229, 115, 39, 0.3);
}

/* Вкладки кабинета */
.cabinet-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(238, 167, 37, 0.2);
    flex-wrap: wrap;
}

.cabinet-tab {
    background: transparent;
    border: none;
    color: var(--text-gray);
    font-size: 16px;
    font-weight: 600;
    padding: 12px 28px;
    cursor: pointer;
    transition: all 0.3s;
}

.cabinet-tab.active {
    color: var(--accent-secondary);
    border-bottom: 2px solid var(--accent-secondary);
}

.cabinet-tab-content {
    display: none;
    padding: 20px 0;
}

.cabinet-tab-content.active {
    display: block;
}

/* Форма профиля */
.profile-form {
    background: rgba(15, 35, 48, 0.6);
    border-radius: 24px;
    padding: 35px;
}

.profile-form h3 {
    color: var(--accent-secondary);
    margin-bottom: 30px;
    font-size: 1.5rem;
}

.profile-form .form-group {
    margin-bottom: 25px;
}

.profile-form .form-group:last-of-type {
    margin-bottom: 0;
}

.social-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 5px;
}

.social-btn {
    padding: 10px 24px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.social-btn.vk {
    background: #4C75A3;
    color: white;
}

.social-btn.vk:hover {
    background: #3a5d85;
    transform: translateY(-2px);
}

.social-btn.ya {
    background: #FC3F1D;
    color: white;
}

.social-btn.ya:hover {
    background: #d63312;
    transform: translateY(-2px);
}

.password-change {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 5px;
}

.password-change input {
    flex: 1;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(238, 167, 37, 0.3);
    border-radius: 12px;
    color: var(--text-light);
}

/* Кнопка сохранения */
.profile-form .btn--primary {
    margin-top: 25px;
}

/* Заказы */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.orders-list h3 {
    margin-bottom: 25px;
}

.order-card {
    background: rgba(15, 35, 48, 0.6);
    border: 1px solid rgba(238, 167, 37, 0.2);
    border-radius: 16px;
    overflow: hidden;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(238, 167, 37, 0.2);
}

.order-id {
    font-weight: 700;
    color: var(--text-light);
}

.order-status {
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-processing {
    background: rgba(238, 167, 37, 0.2);
    color: var(--accent-secondary);
}

.status-ready {
    background: rgba(229, 115, 39, 0.2);
    color: var(--accent-primary);
}

.order-content {
    padding: 18px 25px;
}

.order-content p {
    margin: 8px 0;
    color: var(--text-gray);
}

/* Отслеживание */
.tracking-card {
    background: rgba(15, 35, 48, 0.6);
    border-radius: 24px;
    padding: 35px;
}

.tracking-card h3 {
    margin-bottom: 25px;
}

.tracking-status {
    display: flex;
    justify-content: space-between;
    margin-bottom: 35px;
    flex-wrap: wrap;
    gap: 15px;
}

.tracking-step {
    flex: 1;
    text-align: center;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 30px;
    color: var(--text-gray);
    font-size: 14px;
}

.tracking-step.active {
    background: linear-gradient(145deg, var(--accent-primary), var(--accent-secondary));
    color: var(--text-light);
}

.tracking-info {
    text-align: center;
}

.tracking-info p {
    margin: 18px 0;
    color: var(--text-gray);
}

.tracking-link {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 25px;
}

/* Социальный вход */
.social-login {
    margin-top: 25px;
    text-align: center;
}

.social-login p {
    color: var(--text-gray);
    font-size: 14px;
    margin-bottom: 15px;
    position: relative;
}

.social-login p::before,
.social-login p::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background: rgba(238, 167, 37, 0.2);
}

.social-login p::before {
    left: 0;
}

.social-login p::after {
    right: 0;
}

.social-login-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.social-login-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.social-login-btn.vk {
    background: #4C75A3;
    color: white;
}

.social-login-btn.vk:hover {
    background: #3a5d85;
    transform: translateY(-2px);
}

.social-login-btn.ya {
    background: #FC3F1D;
    color: white;
}

.social-login-btn.ya:hover {
    background: #d63312;
    transform: translateY(-2px);
}

.auth-form .btn--primary {
    margin-top: 15px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .cabinet-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .cabinet-tabs {
        justify-content: center;
    }
    
    .tracking-status {
        flex-direction: column;
    }
    
    .tracking-step {
        text-align: center;
    }
    
    .password-change {
        flex-direction: column;
    }
    
    .profile-form {
        padding: 20px;
    }
    
    .order-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}