/* ============================================
   СТИЛИ ПРОФИЛЯ — СВЕТЛАЯ ТЕМА
   ============================================ */

.auth-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 20px 0;
}

.auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 25px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e1e5eb;
}

.auth-tab {
    flex: 1;
    padding: 12px;
    background: #fafbfc;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: 0.3s;
}

.auth-tab.active {
    background: #e8f5e9;
    color: #2e7d32;
}

.auth-form {
    display: none;
    flex-direction: column;
    gap: 15px;
}

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

.auth-form input {
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #e1e5eb;
    border-radius: 10px;
    color: #333;
    font-size: 1rem;
}

.auth-form input:focus {
    border-color: #2e7d32;
    outline: none;
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.08);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: #fafbfc;
    border-radius: 16px;
    border: 1px solid #e1e5eb;
    margin-bottom: 25px;
}

.profile-avatar {
    font-size: 3rem;
}

.profile-info h2 {
    color: #333;
    font-size: 1.5rem;
}

.profile-balance {
    font-size: 1.3rem;
    color: #2e7d32;
    font-weight: 700;
}

.profile-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #e1e5eb;
    padding: 0 6px;
    flex-wrap: wrap;
}

.profile-tab {
    padding: 14px 20px;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 1rem;
    border-bottom: 3px solid transparent;
    transition: 0.3s;
    min-width: 120px;
    border-radius: 12px 12px 0 0;
    margin: 0 4px;
}

.profile-tab.active {
    color: #2e7d32;
    border-bottom-color: #2e7d32;
    background: #e8f5e9;
}

/* nicer hover for desktop */
.profile-tab:hover {
    color: #2e7d32;
    background: rgba(46, 125, 50, 0.06);
    border-bottom-color: #2e7d32;
}

.section-title {
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e1e5eb;
}

.link-form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    background: #fafbfc;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #e1e5eb;
    margin-bottom: 20px;
}

.link-form select,
.link-form input {
    flex: 1;
    min-width: 150px;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid #e1e5eb;
    border-radius: 8px;
    color: #333;
}

.linked-account {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #e1e5eb;
    border-radius: 10px;
    margin-bottom: 8px;
}

.order-card {
    background: #fff;
    border: 1px solid #e1e5eb;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
}

.order-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.order-status.pending {
    background: #fff8e1;
    color: #f57f17;
}

.order-status.completed {
    background: #e8f5e9;
    color: #2e7d32;
}

.profile-tab-content {
    display: none;
}

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

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    color: #666;
}

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

@media (max-width: 680px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .link-form {
        flex-direction: column;
    }
    
    .profile-tabs {
        overflow-x: auto;
    }
}
